diff options
author | Thomas Heller <theller@ctypes.org> | 2007-09-04 11:27:47 (GMT) |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2007-09-04 11:27:47 (GMT) |
commit | 476157bea5da669061633198b28cf7d18fa49370 (patch) | |
tree | 9d16b17570ee199985773cc39fa0024ced529349 | |
parent | 85bcc66bb492931b6ca3de21ca53ca53b754be33 (diff) | |
download | cpython-476157bea5da669061633198b28cf7d18fa49370.zip cpython-476157bea5da669061633198b28cf7d18fa49370.tar.gz cpython-476157bea5da669061633198b28cf7d18fa49370.tar.bz2 |
Make the _wrap_close type (which is returned by os.popen) iterable.
This should fix the Lib\test\test_uuid.py test on Windows.
-rw-r--r-- | Lib/os.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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): |