karpenoktem / kninfra

Digital infrastructure of Karpe Noktem
http://karpenoktem.nl/
10 stars 14 forks source link

HTML-unescape the subject line in emails #460

Closed aykevl closed 7 years ago

aykevl commented 7 years ago

fixes #458

aykevl commented 7 years ago

Hmmm...

ERROR: /home/travis/build/karpenoktem/kninfra/kn/base/mail.py Imports are incorrectly sorted.
--- /home/travis/build/karpenoktem/kninfra/kn/base/mail.py:before   2017-06-12 16:03:24.301473
+++ /home/travis/build/karpenoktem/kninfra/kn/base/mail.py:after    2017-06-12 16:04:11.901731
@@ -8,6 +8,8 @@
 from django.utils import translation
 from django.utils.translation import ugettext as _

+import kn.leden.entities as Es
+
 # https://stackoverflow.com/a/7088472
 try:
     from html import unescape  # python 3.4+
@@ -15,7 +17,6 @@
     from HTMLParser import HTMLParser  # python 2.x
     unescape = HTMLParser().unescape

-import kn.leden.entities as Es