Kaydet (Commit) 47dded64 authored tarafından Antoine Pitrou's avatar Antoine Pitrou

Backport micro-fix from the py3k svnmerge

üst 0734c632
...@@ -12,7 +12,7 @@ class _WritelnDecorator(object): ...@@ -12,7 +12,7 @@ class _WritelnDecorator(object):
self.stream = stream self.stream = stream
def __getattr__(self, attr): def __getattr__(self, attr):
if attr == 'stream': if attr in ('stream', '__getstate__'):
raise AttributeError(attr) raise AttributeError(attr)
return getattr(self.stream,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