mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Backport micro-fix from the py3k svnmerge
This commit is contained in:
parent
0734c632d5
commit
47dded644f
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue