summaryrefslogtreecommitdiff
path: root/django/utils/functional.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-10-05 08:25:49 -0400
committerTim Graham <timograham@gmail.com>2015-10-05 09:46:59 -0400
commit04ecc26223e4c574067e827320a7f26a86477c88 (patch)
tree1481348c649119f17b231c4e18f9e40d2e1247f9 /django/utils/functional.py
parent2b6344e9447b5a62cb779b92b061b783bdef5f1c (diff)
Removed SimpleLazyObject workaround for a Python 3 bug.
The workaround added in fe8484efda257e151d9c1ca5151e546c9262bf0f seems unnecessary as the Python bug is fixed in Python 3.4.
Diffstat (limited to 'django/utils/functional.py')
-rw-r--r--django/utils/functional.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/django/utils/functional.py b/django/utils/functional.py
index 978d152be2..9738d20646 100644
--- a/django/utils/functional.py
+++ b/django/utils/functional.py
@@ -316,10 +316,6 @@ def unpickle_lazyobject(wrapped):
return wrapped
-# Workaround for http://bugs.python.org/issue12370
-_super = super
-
-
class SimpleLazyObject(LazyObject):
"""
A lazy object initialized from any function.
@@ -337,7 +333,7 @@ class SimpleLazyObject(LazyObject):
value.
"""
self.__dict__['_setupfunc'] = func
- _super(SimpleLazyObject, self).__init__()
+ super(SimpleLazyObject, self).__init__()
def _setup(self):
self._wrapped = self._setupfunc()