From 703b35122c4db45b601547a5f341fd7dbc6f0052 Mon Sep 17 00:00:00 2001 From: hut Date: Sat, 10 Dec 2011 01:24:01 +0100 Subject: core.loader: fix bug with chardet module --- ranger/core/loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "" -- cgit 1.4.1-2-gfad0