Backport micro-fix from the py3k svnmerge

This commit is contained in:
Antoine Pitrou 2009-11-10 21:39:25 +00:00
parent 0734c632d5
commit 47dded644f

View file

@ -12,7 +12,7 @@ class _WritelnDecorator(object):
self.stream = stream
def __getattr__(self, attr):
if attr == 'stream':
if attr in ('stream', '__getstate__'):
raise AttributeError(attr)
return getattr(self.stream,attr)