Kaydet (Commit) 04ecc262 authored tarafından Tim Graham's avatar Tim Graham

Removed SimpleLazyObject workaround for a Python 3 bug.

The workaround added in fe8484ef
seems unnecessary as the Python bug is fixed in Python 3.4.
üst 2b6344e9
...@@ -316,10 +316,6 @@ def unpickle_lazyobject(wrapped): ...@@ -316,10 +316,6 @@ def unpickle_lazyobject(wrapped):
return wrapped return wrapped
# Workaround for http://bugs.python.org/issue12370
_super = super
class SimpleLazyObject(LazyObject): class SimpleLazyObject(LazyObject):
""" """
A lazy object initialized from any function. A lazy object initialized from any function.
...@@ -337,7 +333,7 @@ class SimpleLazyObject(LazyObject): ...@@ -337,7 +333,7 @@ class SimpleLazyObject(LazyObject):
value. value.
""" """
self.__dict__['_setupfunc'] = func self.__dict__['_setupfunc'] = func
_super(SimpleLazyObject, self).__init__() super(SimpleLazyObject, self).__init__()
def _setup(self): def _setup(self):
self._wrapped = self._setupfunc() self._wrapped = self._setupfunc()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment