mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Another fix for b46a0dd6a2
.
This commit is contained in:
parent
f3ecc33678
commit
e3acc03fd6
@ -454,10 +454,7 @@ def format(s, *args, **kwargs):
|
|||||||
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:
|
else:
|
||||||
if sys.version_info[0] < 3:
|
return str(token)
|
||||||
return str(token).decode('utf-8','replace')
|
|
||||||
else:
|
|
||||||
return str(token)
|
|
||||||
elif char == 'i':
|
elif char == 'i':
|
||||||
# XXX Improve me!
|
# XXX Improve me!
|
||||||
return str(args.pop())
|
return str(args.pop())
|
||||||
|
Loading…
Reference in New Issue
Block a user