]> granicus.if.org Git - python/commitdiff
Backport micro-fix from the py3k svnmerge
authorAntoine Pitrou <solipsis@pitrou.net>
Tue, 10 Nov 2009 21:39:25 +0000 (21:39 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Tue, 10 Nov 2009 21:39:25 +0000 (21:39 +0000)
Lib/unittest/runner.py

index 99819df85332478533e3fb9f67061a462006f9bb..3afbc0ece1f01c35f5a77b045141b34bda580217 100644 (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)