aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrás Veres-Szentkirályi <vsza@vsza.hu>2011-08-18 23:33:14 +0200
committerAndrás Veres-Szentkirályi <vsza@vsza.hu>2011-08-18 23:33:14 +0200
commit6f00987850d1789bf342fea79cfb189317f4c9c0 (patch)
treedb3b1b10c245bf3ede7ea956f2d95759e66491d9
parent9abff4f0ac25613638feff9f2b36b8397bae3a41 (diff)
downloadmitmproxy-6f00987850d1789bf342fea79cfb189317f4c9c0.tar.gz
mitmproxy-6f00987850d1789bf342fea79cfb189317f4c9c0.tar.bz2
mitmproxy-6f00987850d1789bf342fea79cfb189317f4c9c0.zip
Optimized single character check
-rw-r--r--libmproxy/contrib/pyparsing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmproxy/contrib/pyparsing.py b/libmproxy/contrib/pyparsing.py
index e0457f15..496ace54 100644
--- a/libmproxy/contrib/pyparsing.py
+++ b/libmproxy/contrib/pyparsing.py
@@ -3402,7 +3402,7 @@ def _makeTags(tagStr, xml):
Dict(ZeroOrMore(Group( tagAttrName + Suppress("=") + tagAttrValue ))) + \
Optional("/",default=[False]).setResultsName("empty").setParseAction(lambda s,l,t:t[0]=='/') + Suppress(">")
else:
- printablesLessRAbrack = "".join(c for c in printables if c not in ">")
+ printablesLessRAbrack = "".join(c for c in printables if c != ">")
tagAttrValue = quotedString.copy().setParseAction( removeQuotes ) | Word(printablesLessRAbrack)
openTag = Suppress("<") + tagStr + \
Dict(ZeroOrMore(Group( tagAttrName.setParseAction(downcaseTokens) + \