even better fix as replacement for last commit which was wrong
This commit is contained in:
parent
9597d3dafe
commit
c0d1f3f7ef
|
@ -240,9 +240,9 @@ class EncodedFile(object):
|
||||||
def __getattr__(self, name):
|
def __getattr__(self, name):
|
||||||
return getattr(self.buffer, name)
|
return getattr(self.buffer, name)
|
||||||
|
|
||||||
def __setattr__(self, dd):
|
def __setstate__(self, dd):
|
||||||
"""default implementation for __setattr__ because unpickling causes infinite
|
"""default implementation for __setstate__ because unpickling causes infinite
|
||||||
recursion if only __getattr__ is overloaded and __setattr__ is missing"""
|
recursion if only __getattr__ is overloaded and __setstate__ is missing"""
|
||||||
self.__dict__ = dd
|
self.__dict__ = dd
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue