mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Backport micro-fix from the py3k svnmerge
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user