mirror of
https://github.com/django/django.git
synced 2025-01-24 00:59:20 +00:00
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.
This commit is contained in:
parent
2b6344e944
commit
04ecc26223
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user