speed optimization

This commit is contained in:
Miroslav Stampar 2011-03-31 17:16:26 +00:00
parent 220366b6e8
commit 156d24203f

View File

@ -1956,7 +1956,7 @@ def extractRegexResult(regex, content, flags=0):
retVal = None
if regex and content and '?P<result>' in regex:
match = re.search(regex, content, flags)
match = getCompiledRegex(regex, flags).search(content)
if match:
retVal = match.group("result")