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 11:27:09 -0400
commit47fcbe506c04019a12e16221843e25a52249b1ab (patch)
tree0ad523fef8859042a09b3de8dc3977ae48c23701 /django/utils/html.py
parentccfb5c74083ac565c66a2d0cfe11e60e7d1c8337 (diff)
Fixed flake8 warnings on Python 3.
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 cafc3ab6e1..bbdc03f3c6 100644
--- a/django/utils/html.py
+++ b/django/utils/html.py
@@ -380,7 +380,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(