Another fix for b46a0dd6a2.

This commit is contained in:
Valentin Lorentz 2013-08-17 19:27:52 +02:00
parent f3ecc33678
commit e3acc03fd6

View File

@ -453,9 +453,6 @@ def format(s, *args, **kwargs):
return token return token
elif sys.version_info[0] < 3 and isinstance(token, unicode): elif sys.version_info[0] < 3 and isinstance(token, unicode):
return token.encode('utf8', 'replace') return token.encode('utf8', 'replace')
else:
if sys.version_info[0] < 3:
return str(token).decode('utf-8','replace')
else: else:
return str(token) return str(token)
elif char == 'i': elif char == 'i':