summaryrefslogtreecommitdiff
path: root/django/core/files/base.py
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2016-11-19 21:54:19 +0100
committerClaude Paroz <claude@2xlibre.net>2017-01-18 13:44:34 +0100
commitf3c43ad1fd9556f0fd026a5dfa93c67a5cf186ca (patch)
tree65ca40d4527b377845cdd382456383bf97caafa6 /django/core/files/base.py
parentd7b9aaa366dd54ecc3142c588162e3adc7c2f7ac (diff)
downloaddjango-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.py6
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.