summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-12-10 01:24:01 +0100
committerhut <hut@lavabit.com>2011-12-10 01:24:01 +0100
commit703b35122c4db45b601547a5f341fd7dbc6f0052 (patch)
tree27ef74dbd05a21166ac391be6978622bf693002c
parent2b02078dc0ec9e939e1db3cbbe5f1d3bf4490846 (diff)
downloadranger-703b35122c4db45b601547a5f341fd7dbc6f0052.tar.gz
core.loader: fix bug with chardet module
-rw-r--r--ranger/core/loader.py2
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 ""