mirror of https://github.com/Mikaela/Limnoria.git
Fix commit b46a0dd
(breaks tests for Alias and Aka).
This commit is contained in:
parent
dfdc7f1cd1
commit
f3ecc33678
|
@ -450,9 +450,6 @@ 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.decode('utf-8','replace')
|
|
||||||
else:
|
|
||||||
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')
|
||||||
|
|
Loading…
Reference in New Issue