diff options
author | Claude Paroz <claude@2xlibre.net> | 2016-11-19 21:54:19 +0100 |
---|---|---|
committer | Claude Paroz <claude@2xlibre.net> | 2017-01-18 13:44:34 +0100 |
commit | f3c43ad1fd9556f0fd026a5dfa93c67a5cf186ca (patch) | |
tree | 65ca40d4527b377845cdd382456383bf97caafa6 /django/core/files/base.py | |
parent | d7b9aaa366dd54ecc3142c588162e3adc7c2f7ac (diff) | |
download | django-f3c43ad1fd9556f0fd026a5dfa93c67a5cf186ca.tar.gz |
Refs #23919 -- Removed python_2_unicode_compatible decorator usage
Diffstat (limited to 'django/core/files/base.py')
-rw-r--r-- | django/core/files/base.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/django/core/files/base.py b/django/core/files/base.py index 7499629459..f797158881 100644 --- a/django/core/files/base.py +++ b/django/core/files/base.py @@ -3,12 +3,9 @@ from io import BytesIO, StringIO, UnsupportedOperation from django.core.files.utils import FileProxyMixin from django.utils import six -from django.utils.encoding import ( - force_bytes, force_str, force_text, python_2_unicode_compatible, -) +from django.utils.encoding import force_bytes, force_str, force_text -@python_2_unicode_compatible class File(FileProxyMixin): DEFAULT_CHUNK_SIZE = 64 * 2 ** 10 @@ -138,7 +135,6 @@ class File(FileProxyMixin): self.file.close() -@python_2_unicode_compatible class ContentFile(File): """ A File-like object that takes just raw content, rather than an actual file. |