summaryrefslogtreecommitdiff
path: root/django/utils/functional.py
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/utils/functional.py
parenta5563963397aeee30c32e3c1dab31bfe453ca89f (diff)
Refs #23919 -- Stopped inheriting from object to define new style classes.
Diffstat (limited to 'django/utils/functional.py')
-rw-r--r--django/utils/functional.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/django/utils/functional.py b/django/utils/functional.py
index 2eeffa0447..30e484eaa3 100644
--- a/django/utils/functional.py
+++ b/django/utils/functional.py
@@ -12,7 +12,7 @@ def curry(_curried_func, *args, **kwargs):
return _curried
-class cached_property(object):
+class cached_property:
"""
Decorator that converts a method with a single self argument into a
property cached on the instance.
@@ -32,7 +32,7 @@ class cached_property(object):
return res
-class Promise(object):
+class Promise:
"""
This is just a base class for the proxy class created in
the closure of the lazy function. It can be used to recognize
@@ -214,7 +214,7 @@ def new_method_proxy(func):
return inner
-class LazyObject(object):
+class LazyObject:
"""
A wrapper for another class that can be used to delay instantiation of the
wrapped class.