diff options
author | Spiros Georgaras <sng@hellug.gr> | 2019-01-26 01:13:00 +0200 |
---|---|---|
committer | Spiros Georgaras <sng@hellug.gr> | 2019-01-26 01:13:00 +0200 |
commit | 764d5452fe1c19c89a34bd313c9cb21fa883a1b6 (patch) | |
tree | e02a70863c535f7a59787dae40cef7430ae797b7 | |
parent | 4f26e90410aaf8f70b51654d91631ac2a46c5194 (diff) | |
download | ranger-764d5452fe1c19c89a34bd313c9cb21fa883a1b6.tar.gz |
adding py2 support
-rw-r--r-- | ranger/gui/curses_shortcuts.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/gui/curses_shortcuts.py b/ranger/gui/curses_shortcuts.py index b9fcbaf5..b507a5c2 100644 --- a/ranger/gui/curses_shortcuts.py +++ b/ranger/gui/curses_shortcuts.py @@ -14,7 +14,7 @@ REVERSE_ADDCH_ARGS = sys.version[0:5] == '3.4.0' def _fix_surrogates(args): return [isinstance(arg, str) and arg.encode('utf-8', 'surrogateescape') - .decode('utf-8', 'replace').replace('\u0000', '') or arg for arg in args] + .decode('utf-8', 'replace').replace(u'\u0000', '') or arg for arg in args] class CursesShortcuts(SettingsAware): |