mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-24 04:14:57 +08:00
Optimized single character check
This commit is contained in:
@@ -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) + \
|
||||
|
||||
Reference in New Issue
Block a user