minor update regarding good samaritan

This commit is contained in:
Miroslav Stampar
2010-05-25 14:51:02 +00:00
parent 065d5b02ec
commit 8ed76b3024
2 changed files with 12 additions and 7 deletions

View File

@@ -1262,11 +1262,11 @@ def getGoodSamaritanParameters(part, prevValue, originalCharset):
predictedCharset.append(ordChar)
predictedCharset.sort()
if len(predictedCharset) > 1:
singleValue = None
return singleValue, predictedCharset, otherCharset
if len(predictedCharset) > 1:
return None, predictedCharset, otherCharset
else:
return singleValue, None, originalCharset
else:
return None, None, originalCharset