Commits

Christian Heimes committed 972fc7d

As Guido says

Comments (0)

Files changed (1)

         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