summaryrefslogtreecommitdiff
path: root/django/utils/html.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-06-15 10:37:14 -0400
committerTim Graham <timograham@gmail.com>2015-06-15 13:01:41 -0400
commit062ce508b0edcb3a2e801d7959e08207bd8d2a1e (patch)
treecde48b14db8ce70cdfb73e787f6c28aaa8bee1a9 /django/utils/html.py
parent53323a5c23231501a840deb8d2296b0508405d4d (diff)
[1.8.x] Fixed flake8 warnings on Python 3.
Backport of 47fcbe506c04019a12e16221843e25a52249b1ab from master
Diffstat (limited to 'django/utils/html.py')
-rw-r--r--django/utils/html.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/html.py b/django/utils/html.py
index eabbb16467..837a17f171 100644
--- a/django/utils/html.py
+++ b/django/utils/html.py
@@ -388,7 +388,7 @@ def html_safe(klass):
)
klass_unicode = klass.__unicode__
klass.__unicode__ = lambda self: mark_safe(klass_unicode(self))
- klass.__html__ = lambda self: unicode(self)
+ klass.__html__ = lambda self: unicode(self) # NOQA: unicode undefined on PY3
else:
if '__str__' not in klass.__dict__:
raise ValueError(