summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--emails/loader/helpers.py4
-rw-r--r--requirements/base.txt2
-rw-r--r--setup.py2
3 files changed, 4 insertions, 4 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):
diff --git a/requirements/base.txt b/requirements/base.txt
index 4664c18..efd3de4 100644
--- a/requirements/base.txt
+++ b/requirements/base.txt
@@ -1,6 +1,6 @@
cssutils
lxml
-charade
+chardet
python-dateutil
requests
premailer>=2.8.3
diff --git a/setup.py b/setup.py
index b2ec23c..c160261 100644
--- a/setup.py
+++ b/setup.py
@@ -125,7 +125,7 @@ settings.update(
'emails.packages.dkim'
],
scripts=['scripts/make_rfc822.py'],
- install_requires=['cssutils', 'lxml', 'charade', 'python-dateutil', 'requests', 'premailer'],
+ install_requires=['cssutils', 'lxml', 'chardet', 'python-dateutil', 'requests', 'premailer'],
license=open('LICENSE').read(),
#test_suite = "emails.testsuite.test_all",
zip_safe=False,