[Python-3000-checkins] r61117 - python/branches/py3k/Lib/tempfile.py
christian.heimes
python-3000-checkins at python.org
Thu Feb 28 23:21:11 CET 2008
Author: christian.heimes
Date: Thu Feb 28 23:21:11 2008
New Revision: 61117
Modified:
python/branches/py3k/Lib/tempfile.py
Log:
As Guido says
Modified: python/branches/py3k/Lib/tempfile.py
==============================================================================
--- python/branches/py3k/Lib/tempfile.py (original)
+++ python/branches/py3k/Lib/tempfile.py Thu Feb 28 23:21:11 2008
@@ -394,9 +394,9 @@
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
More information about the Python-3000-checkins
mailing list