mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Fix commit b46a0dd
(breaks tests for Alias and Aka).
This commit is contained in:
parent
dfdc7f1cd1
commit
f3ecc33678
@ -450,10 +450,7 @@ def format(s, *args, **kwargs):
|
|||||||
if char == 's':
|
if char == 's':
|
||||||
token = args.pop()
|
token = args.pop()
|
||||||
if isinstance(token, str):
|
if isinstance(token, str):
|
||||||
if sys.version_info[0] < 3:
|
return token
|
||||||
return token.decode('utf-8','replace')
|
|
||||||
else:
|
|
||||||
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:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user