summaryrefslogtreecommitdiffstats
path: root/Lib/os.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/os.py')
-rw-r--r--Lib/os.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/os.py b/Lib/os.py
index 727d0cb..e8676d9 100644
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -664,6 +664,8 @@ class _wrap_close:
return self._proc.wait() << 8 # Shift left to match old behavior
def __getattr__(self, name):
return getattr(self._stream, name)
+ def __iter__(self):
+ return iter(self._stream)
# Supply os.fdopen() (used by subprocess!)
def fdopen(fd, mode="r", buffering=-1):