Fix commit b46a0dd (breaks tests for Alias and Aka).

This commit is contained in:
Valentin Lorentz 2013-08-17 17:08:55 +02:00
parent dfdc7f1cd1
commit f3ecc33678

View File

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