summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Fedoseev <fedoseev.sergey@gmail.com>2018-03-12 18:12:44 +0500
committerTim Graham <timograham@gmail.com>2018-03-12 09:12:44 -0400
commite17776e2cd3ae5b9ea13325128b2bcfde552da7c (patch)
tree416c255233dc978845222304a215a807f224c7a9
parenta5406fe989d27598652dfd9f8dc1429b5d2db85c (diff)
Removed redundant UploadedFile.DEFAULT_CHUNK_SIZE.
The same value is inherited from File.
-rw-r--r--django/core/files/base.py2
-rw-r--r--django/core/files/uploadedfile.py1
2 files changed, 1 insertions, 2 deletions
diff --git a/django/core/files/base.py b/django/core/files/base.py
index bc87a870c2..5403d4a702 100644
--- a/django/core/files/base.py
+++ b/django/core/files/base.py
@@ -48,7 +48,7 @@ class File(FileProxyMixin):
def chunks(self, chunk_size=None):
"""
Read the file and yield chunks of ``chunk_size`` bytes (defaults to
- ``UploadedFile.DEFAULT_CHUNK_SIZE``).
+ ``File.DEFAULT_CHUNK_SIZE``).
"""
chunk_size = chunk_size or self.DEFAULT_CHUNK_SIZE
try:
diff --git a/django/core/files/uploadedfile.py b/django/core/files/uploadedfile.py
index 8f1d26ea5f..48007b8682 100644
--- a/django/core/files/uploadedfile.py
+++ b/django/core/files/uploadedfile.py
@@ -21,7 +21,6 @@ class UploadedFile(File):
An ``UploadedFile`` object behaves somewhat like a file object and
represents some file data that the user submitted with a form.
"""
- DEFAULT_CHUNK_SIZE = 64 * 2 ** 10
def __init__(self, file=None, name=None, content_type=None, size=None, charset=None, content_type_extra=None):
super().__init__(file, name)