diff options
author | Christian Heimes <christian@cheimes.de> | 2008-02-28 22:21:11 +0000 |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2008-02-28 22:21:11 +0000 |
commit | 60fb6670e967ef00b16a01433613e60c07246c9b (patch) | |
tree | cefb662642db224ab0921c649087d5275e3b661a /Lib/tempfile.py | |
parent | 4601b28f844d45fe47634e310cb8ed8d15fd5b7e (diff) | |
download | cpython-60fb6670e967ef00b16a01433613e60c07246c9b.tar.gz |
As Guido says
Diffstat (limited to 'Lib/tempfile.py')
-rw-r--r-- | Lib/tempfile.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/tempfile.py b/Lib/tempfile.py index 11a4c60e2d..df1317d587 100644 --- a/Lib/tempfile.py +++ b/Lib/tempfile.py @@ -394,9 +394,9 @@ class _TemporaryFileWrapper: self.file.__enter__() return self - # XXX iter() doesn't use __getattr__ to find the __iter__ method + # iter() doesn't use __getattr__ to find the __iter__ method def __iter__(self): - return self.__getattr__('__iter__')() + return iter(self.file) # NT provides delete-on-close as a primitive, so we don't need # the wrapper to do anything special. We still use it so that |