hopefully final fix for strange infinite recursion bug
This commit is contained in:
parent
c0d1f3f7ef
commit
5d024c7433
|
@ -238,12 +238,8 @@ class EncodedFile(object):
|
|||
self.write(data)
|
||||
|
||||
def __getattr__(self, name):
|
||||
return getattr(self.buffer, name)
|
||||
|
||||
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
|
||||
if hasattr(self, "buffer"):
|
||||
return getattr(self.buffer, name)
|
||||
|
||||
|
||||
class MultiCapture(object):
|
||||
|
|
Loading…
Reference in New Issue