summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSpiros Georgaras <sng@hellug.gr>2019-01-26 01:13:00 +0200
committerSpiros Georgaras <sng@hellug.gr>2019-01-26 01:13:00 +0200
commit764d5452fe1c19c89a34bd313c9cb21fa883a1b6 (patch)
treee02a70863c535f7a59787dae40cef7430ae797b7
parent4f26e90410aaf8f70b51654d91631ac2a46c5194 (diff)
downloadranger-764d5452fe1c19c89a34bd313c9cb21fa883a1b6.tar.gz
adding py2 support
-rw-r--r--ranger/gui/curses_shortcuts.py2
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):