summaryrefslogtreecommitdiffstats
path: root/Lib/subprocess.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-05-02 06:23:22 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-05-02 06:23:22 (GMT)
commita6d01cec3ff3b945565653f96141c693af639924 (patch)
treedfd95ebfcff6958d101d402bd953071796e0aa04 /Lib/subprocess.py
parentc4edb0ec81f437b84a4011e3a375892d48d0bd6c (diff)
downloadcpython-a6d01cec3ff3b945565653f96141c693af639924.zip
cpython-a6d01cec3ff3b945565653f96141c693af639924.tar.gz
cpython-a6d01cec3ff3b945565653f96141c693af639924.tar.bz2
Try to fix breakage caused by patch #1479181, r45850
Diffstat (limited to 'Lib/subprocess.py')
-rw-r--r--Lib/subprocess.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
index 4f38314..87508cc 100644
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -872,7 +872,7 @@ class Popen(object):
# object do the translation: It is based on stdio, which is
# impossible to combine with select (unless forcing no
# buffering).
- if self.universal_newlines and hasattr(open, 'newlines'):
+ if self.universal_newlines and hasattr(file, 'newlines'):
if stdout:
stdout = self._translate_newlines(stdout)
if stderr:
@@ -1141,7 +1141,7 @@ class Popen(object):
# object do the translation: It is based on stdio, which is
# impossible to combine with select (unless forcing no
# buffering).
- if self.universal_newlines and hasattr(open, 'newlines'):
+ if self.universal_newlines and hasattr(file, 'newlines'):
if stdout:
stdout = self._translate_newlines(stdout)
if stderr: