From a82ad9cb1abfaaa8c5b321545fb6de1976d3fbff Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Wed, 12 Jun 2013 17:38:50 +0000 Subject: [PATCH] utils/web.py: Properly import chardet. --- src/utils/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/web.py b/src/utils/web.py index 94313c900..87598fab8 100644 --- a/src/utils/web.py +++ b/src/utils/web.py @@ -190,7 +190,7 @@ def htmlToText(s, tagReplace=' '): """Turns HTML into text. tagReplace is a string to replace HTML tags with. """ try: - import chardet + import chardet.universaldetector except ImportError: s = s.decode('utf8') else: