diff options
author | hut <hut@lavabit.com> | 2011-10-01 20:34:26 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2011-10-01 20:34:26 +0200 |
commit | dafd34cb67d6df9d4917af4cc9e61d2b7857136f (patch) | |
tree | 871146808bf11cd288134b16c37c101920c55bb4 /ranger | |
parent | 488245cb940a029ca751ea06748c881c11a32d2d (diff) | |
download | ranger-dafd34cb67d6df9d4917af4cc9e61d2b7857136f.tar.gz |
ext.widestring: fixed input of unicode in console for python2
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/ext/widestring.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ranger/ext/widestring.py b/ranger/ext/widestring.py index 28f38e54..a17e7649 100644 --- a/ranger/ext/widestring.py +++ b/ranger/ext/widestring.py @@ -34,6 +34,7 @@ def uchars(string): """Return a list of characters in a string""" if not PY3: string = string.decode('utf-8', 'ignore') + return [c.encode('utf-8', 'ignore') for c in string] return list(string) |