mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +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):
|
||||
return token.encode('utf8', 'replace')
|
||||
else:
|
||||
if sys.version_info[0] < 3:
|
||||
return str(token).decode('utf-8','replace')
|
||||
else:
|
||||
return str(token)
|
||||
return str(token)
|
||||
elif char == 'i':
|
||||
# XXX Improve me!
|
||||
return str(args.pop())
|
||||
|
Loading…
Reference in New Issue
Block a user