minor fix

This commit is contained in:
Miroslav Stampar 2011-04-20 08:38:46 +00:00
parent 24435a2c20
commit 52c98afe93

View File

@ -173,7 +173,7 @@ def decodePage(page, contentEncoding, contentType):
metaCharset = checkCharEncoding(extractRegexResult(META_CHARSET_REGEX, page, re.DOTALL | re.IGNORECASE))
if (httpCharset or metaCharset and not all([httpCharset, metaCharset]))\
if ((httpCharset or metaCharset) and not all([httpCharset, metaCharset]))\
or (httpCharset == metaCharset and all([httpCharset, metaCharset])):
kb.pageEncoding = httpCharset or metaCharset
else: