Commit 47dded64 authored by Antoine Pitrou's avatar Antoine Pitrou

Backport micro-fix from the py3k svnmerge

parent 0734c632
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment