mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Try to fix breakage caused by patch #1479181, r45850
This commit is contained in:
parent
c4edb0ec81
commit
a6d01cec3f
2 changed files with 4 additions and 4 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue