even better fix as replacement for last commit which was wrong
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user