Some memory improvements of @cachedmethod

This commit is contained in:
Miroslav Stampar
2017-11-09 12:24:11 +01:00
parent 58b87e4b6b
commit 9404b63a42
4 changed files with 8 additions and 7 deletions

View File

@@ -2691,6 +2691,7 @@ def enumValueToNameLookup(type_, value_):
return retVal
@cachedmethod
def extractRegexResult(regex, content, flags=0):
"""
Returns 'result' group value from a possible match with regex on a given