Try to fix breakage caused by patch #1479181, r45850

This commit is contained in:
Neal Norwitz 2006-05-02 06:23:22 +00:00
parent c4edb0ec81
commit a6d01cec3f
2 changed files with 4 additions and 4 deletions

View file

@ -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: