summaryrefslogtreecommitdiffstats
path: root/emails/loader/helpers.py
diff options
context:
space:
mode:
Diffstat (limited to 'emails/loader/helpers.py')
-rw-r--r--emails/loader/helpers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/emails/loader/helpers.py b/emails/loader/helpers.py
index c06d118..cbccc27 100644
--- a/emails/loader/helpers.py
+++ b/emails/loader/helpers.py
@@ -4,7 +4,7 @@ __all__ = ['guess_charset', 'fix_content_type']
import re
import cgi
-import charade
+import chardet
from ..compat import to_native, to_unicode
@@ -40,7 +40,7 @@ def guess_text_charset(text, is_html=False):
return to_native(charset)
# guess by chardet
if isinstance(text, bytes):
- return to_native(charade.detect(text)['encoding'])
+ return to_native(chardet.detect(text)['encoding'])
def guess_html_charset(html):