even better fix as replacement for last commit which was wrong

This commit is contained in:
uweschmitt 2014-08-07 17:17:05 +02:00
parent 9597d3dafe
commit c0d1f3f7ef
1 changed files with 3 additions and 3 deletions

View File

@ -240,9 +240,9 @@ class EncodedFile(object):
def __getattr__(self, name):
return getattr(self.buffer, name)
def __setattr__(self, dd):
"""default implementation for __setattr__ because unpickling causes infinite
recursion if only __getattr__ is overloaded and __setattr__ is missing"""
def __setstate__(self, dd):
"""default implementation for __setstate__ because unpickling causes infinite
recursion if only __getattr__ is overloaded and __setstate__ is missing"""
self.__dict__ = dd