Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
a6d01cec
Kaydet (Commit)
a6d01cec
authored
May 02, 2006
tarafından
Neal Norwitz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Try to fix breakage caused by patch #1479181, r45850
üst
c4edb0ec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
subprocess.py
Lib/subprocess.py
+2
-2
test_subprocess.py
Lib/test/test_subprocess.py
+2
-2
No files found.
Lib/subprocess.py
Dosyayı görüntüle @
a6d01cec
...
@@ -872,7 +872,7 @@ class Popen(object):
...
@@ -872,7 +872,7 @@ class Popen(object):
# object do the translation: It is based on stdio, which is
# object do the translation: It is based on stdio, which is
# impossible to combine with select (unless forcing no
# impossible to combine with select (unless forcing no
# buffering).
# buffering).
if
self
.
universal_newlines
and
hasattr
(
open
,
'newlines'
):
if
self
.
universal_newlines
and
hasattr
(
file
,
'newlines'
):
if
stdout
:
if
stdout
:
stdout
=
self
.
_translate_newlines
(
stdout
)
stdout
=
self
.
_translate_newlines
(
stdout
)
if
stderr
:
if
stderr
:
...
@@ -1141,7 +1141,7 @@ class Popen(object):
...
@@ -1141,7 +1141,7 @@ class Popen(object):
# object do the translation: It is based on stdio, which is
# object do the translation: It is based on stdio, which is
# impossible to combine with select (unless forcing no
# impossible to combine with select (unless forcing no
# buffering).
# buffering).
if
self
.
universal_newlines
and
hasattr
(
open
,
'newlines'
):
if
self
.
universal_newlines
and
hasattr
(
file
,
'newlines'
):
if
stdout
:
if
stdout
:
stdout
=
self
.
_translate_newlines
(
stdout
)
stdout
=
self
.
_translate_newlines
(
stdout
)
if
stderr
:
if
stderr
:
...
...
Lib/test/test_subprocess.py
Dosyayı görüntüle @
a6d01cec
...
@@ -347,7 +347,7 @@ class ProcessTestCase(unittest.TestCase):
...
@@ -347,7 +347,7 @@ class ProcessTestCase(unittest.TestCase):
stdout
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
,
universal_newlines
=
1
)
universal_newlines
=
1
)
stdout
=
p
.
stdout
.
read
()
stdout
=
p
.
stdout
.
read
()
if
hasattr
(
p
.
stdout
,
'newlines'
):
if
hasattr
(
file
,
'newlines'
):
# Interpreter with universal newline support
# Interpreter with universal newline support
self
.
assertEqual
(
stdout
,
self
.
assertEqual
(
stdout
,
"line1
\n
line2
\n
line3
\n
line4
\n
line5
\n
line6"
)
"line1
\n
line2
\n
line3
\n
line4
\n
line5
\n
line6"
)
...
@@ -374,7 +374,7 @@ class ProcessTestCase(unittest.TestCase):
...
@@ -374,7 +374,7 @@ class ProcessTestCase(unittest.TestCase):
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
,
universal_newlines
=
1
)
universal_newlines
=
1
)
(
stdout
,
stderr
)
=
p
.
communicate
()
(
stdout
,
stderr
)
=
p
.
communicate
()
if
hasattr
(
stdout
,
'newlines'
):
if
hasattr
(
file
,
'newlines'
):
# Interpreter with universal newline support
# Interpreter with universal newline support
self
.
assertEqual
(
stdout
,
self
.
assertEqual
(
stdout
,
"line1
\n
line2
\n
line3
\n
line4
\n
line5
\n
line6"
)
"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