diff options
author | hut <hut@lavabit.com> | 2011-12-10 01:24:01 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2011-12-10 01:24:01 +0100 |
commit | 703b35122c4db45b601547a5f341fd7dbc6f0052 (patch) | |
tree | 27ef74dbd05a21166ac391be6978622bf693002c /ranger | |
parent | 2b02078dc0ec9e939e1db3cbbe5f1d3bf4490846 (diff) | |
download | ranger-703b35122c4db45b601547a5f341fd7dbc6f0052.tar.gz |
core.loader: fix bug with chardet module
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/core/loader.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/core/loader.py b/ranger/core/loader.py index e1262718..59d3e6c0 100644 --- a/ranger/core/loader.py +++ b/ranger/core/loader.py @@ -146,7 +146,7 @@ def safeDecode(string): return string.decode("utf-8") except (UnicodeDecodeError): if HAVE_CHARDET: - return string.decode(chardet.detect(str)["encoding"]) + return string.decode(chardet.detect(string)["encoding"]) else: return "" |