minor optimization

This commit is contained in:
Miroslav Stampar
2011-12-22 20:08:28 +00:00
parent 094129a656
commit 8a7b0406c8
2 changed files with 12 additions and 9 deletions

View File

@@ -1332,12 +1332,12 @@ def parseUnionPage(output, unique=True):
if output is None:
return None
data = BigArray()
if output.startswith(kb.chars.start) and output.endswith(kb.chars.stop):
data = BigArray()
_ = []
regExpr = '%s(.*?)%s' % (kb.chars.start, kb.chars.stop)
output = re.finditer(regExpr, output, re.DOTALL | re.IGNORECASE)
_ = []
for entry in output:
entry = entry.group(1)