mirror of
https://github.com/powerline/powerline.git
synced 2025-07-31 01:35:40 +02:00
decode takes no keyword arguments in python-2.6
This commit is contained in:
parent
ba33c327f5
commit
f3d7a6394b
@ -56,7 +56,7 @@ class Args(object):
|
|||||||
|
|
||||||
def string(s):
|
def string(s):
|
||||||
if type(s) is bytes:
|
if type(s) is bytes:
|
||||||
return s.decode('utf-8', errors='replace')
|
return s.decode('utf-8', 'replace')
|
||||||
else:
|
else:
|
||||||
return str(s)
|
return str(s)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user