Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1ae529a0
Commit
1ae529a0
authored
May 02, 2006
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to fix breakage caused by patch #1479181, r45850
parent
b6743626
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Lib/subprocess.py
Lib/subprocess.py
+2
-2
Lib/test/test_subprocess.py
Lib/test/test_subprocess.py
+2
-2
No files found.
Lib/subprocess.py
View file @
1ae529a0
...
...
@@ -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
:
...
...
Lib/test/test_subprocess.py
View file @
1ae529a0
...
...
@@ -347,7 +347,7 @@ class ProcessTestCase(unittest.TestCase):
stdout
=
subprocess
.
PIPE
,
universal_newlines
=
1
)
stdout
=
p
.
stdout
.
read
()
if
hasattr
(
p
.
stdout
,
'newlines'
):
if
hasattr
(
file
,
'newlines'
):
# Interpreter with universal newline support
self
.
assertEqual
(
stdout
,
"line1
\
n
line2
\
n
line3
\
n
line4
\
n
line5
\
n
line6"
)
...
...
@@ -374,7 +374,7 @@ class ProcessTestCase(unittest.TestCase):
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
,
universal_newlines
=
1
)
(
stdout
,
stderr
)
=
p
.
communicate
()
if
hasattr
(
stdout
,
'newlines'
):
if
hasattr
(
file
,
'newlines'
):
# Interpreter with universal newline support
self
.
assertEqual
(
stdout
,
"line1
\
n
line2
\
n
line3
\
n
line4
\
n
line5
\
n
line6"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment