diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-02 13:12:09 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-02 13:12:09 -0700 |
commit | 7548aa8ffd46eb6e0f73730d1b2eb515ba581f95 (patch) | |
tree | 963393779f4c8c33351ea605f708f8da7d9f70bf /django/utils/encoding.py | |
parent | 65c4ac3b2434d1828cb76c9f4454fe64e81354ee (diff) | |
download | django-7548aa8ffd46eb6e0f73730d1b2eb515ba581f95.tar.gz |
More attacking E302 violators
Diffstat (limited to 'django/utils/encoding.py')
-rw-r--r-- | django/utils/encoding.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/django/utils/encoding.py b/django/utils/encoding.py index 6d1d575faf..ad4473df6a 100644 --- a/django/utils/encoding.py +++ b/django/utils/encoding.py @@ -9,6 +9,7 @@ from django.utils.functional import Promise from django.utils import six from django.utils.six.moves.urllib.parse import quote + class DjangoUnicodeDecodeError(UnicodeDecodeError): def __init__(self, obj, *args): self.obj = obj @@ -19,6 +20,7 @@ class DjangoUnicodeDecodeError(UnicodeDecodeError): return '%s. You passed in %r (%s)' % (original, self.obj, type(self.obj)) + def python_2_unicode_compatible(klass): """ A decorator that defines __unicode__ and __str__ methods under Python 2. |