summaryrefslogtreecommitdiff
path: root/django/core/files
diff options
context:
space:
mode:
authorSimon Charette <charettes@users.noreply.github.com>2017-01-19 02:39:46 -0500
committerClaude Paroz <claude@2xlibre.net>2017-01-19 08:39:46 +0100
commitcecc079168e8669138728d31611ff3a1e7eb3a9f (patch)
tree2415083d44f84c6f206930fc689a8c0e50a98caa /django/core/files
parenta5563963397aeee30c32e3c1dab31bfe453ca89f (diff)
Refs #23919 -- Stopped inheriting from object to define new style classes.
Diffstat (limited to 'django/core/files')
-rw-r--r--django/core/files/storage.py2
-rw-r--r--django/core/files/uploadhandler.py2
-rw-r--r--django/core/files/utils.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/django/core/files/storage.py b/django/core/files/storage.py
index cf17eea339..6f2d6bfd91 100644
--- a/django/core/files/storage.py
+++ b/django/core/files/storage.py
@@ -20,7 +20,7 @@ from django.utils.text import get_valid_filename
__all__ = ('Storage', 'FileSystemStorage', 'DefaultStorage', 'default_storage')
-class Storage(object):
+class Storage:
"""
A base storage class, providing some default behaviors that all other
storage systems can inherit or override, as necessary.
diff --git a/django/core/files/uploadhandler.py b/django/core/files/uploadhandler.py
index 3741f372b2..e8f87845c9 100644
--- a/django/core/files/uploadhandler.py
+++ b/django/core/files/uploadhandler.py
@@ -58,7 +58,7 @@ class StopFutureHandlers(UploadFileException):
pass
-class FileUploadHandler(object):
+class FileUploadHandler:
"""
Base class for streaming upload handlers.
"""
diff --git a/django/core/files/utils.py b/django/core/files/utils.py
index 8e891bf23f..96bfbe46c2 100644
--- a/django/core/files/utils.py
+++ b/django/core/files/utils.py
@@ -1,4 +1,4 @@
-class FileProxyMixin(object):
+class FileProxyMixin:
"""
A mixin class used to forward file methods to an underlaying file
object. The internal file object has to be called "file"::