minor cleanup

This commit is contained in:
Miroslav Stampar 2010-05-14 14:03:33 +00:00
parent 7107e8fd6a
commit 19a82e151c

View File

@ -1036,8 +1036,7 @@ def sanitizeAsciiString(subject):
if not index:
return subject
else:
retVal = subject[:index] + "".join(subject[i] if ord(subject[i]) < 128 else '?' for i in xrange(index, len(subject)))
return retVal
return subject[:index] + "".join(subject[i] if ord(subject[i]) < 128 else '?' for i in xrange(index, len(subject)))
else:
return None