mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +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':
|
||||
token = args.pop()
|
||||
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):
|
||||
return token.encode('utf8', 'replace')
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user