(self, name)
Delegate methods to stream.
Delegate methods to stream.
Delegate methods to stream .
def __getattr__(self, name):
        """Delegate methods to stream."""
        if '_stream' in self.__dict__ and name not in ('__getstate__', '__dict__'):
            return getattr(self._stream, name)
        else:
            # this is needed for pickle to be able to reconstruct the class
            raise AttributeError()
def __getattr__ ( self , name ) : if '_stream' in self . __dict__ and name not in ( '__getstate__' , '__dict__' ) : return getattr ( self . _stream , name ) else : # this is needed for pickle to be able to reconstruct the class raise AttributeError ( )