minor fix

This commit is contained in:
Miroslav Stampar 2011-08-23 21:48:39 +00:00
parent 01014eca17
commit 8fe069b495

View File

@ -119,7 +119,7 @@ def __findUnionCharCount(comment, place, parameter, value, prefix, suffix, where
if kb.uChar:
for regex in (kb.uChar, r'>\s*%s\s*<' % kb.uChar):
contains = [(count, re.search(regex, page, re.IGNORECASE) is not None) for count, page in pages.items()]
contains = [(count, re.search(regex, page or "", re.IGNORECASE) is not None) for count, page in pages.items()]
if len(filter(lambda x: x[1], contains)) == 1:
retVal = filter(lambda x: x[1], contains)[0][0]
break