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
c9aa321a
Kaydet (Commit)
c9aa321a
authored
Agu 01, 2012
tarafından
Jesus Cea
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Closes #15499: Sleep is hardcoded in webbrowser.UnixBrowser
üst
0efcf99c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
webbrowser.py
Lib/webbrowser.py
+7
-10
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/webbrowser.py
Dosyayı görüntüle @
c9aa321a
...
...
@@ -232,17 +232,14 @@ class UnixBrowser(BaseBrowser):
stdout
=
(
self
.
redirect_stdout
and
inout
or
None
),
stderr
=
inout
,
start_new_session
=
True
)
if
remote
:
# wait five seconds. If the subprocess is not finished, the
# wait
at most
five seconds. If the subprocess is not finished, the
# remote invocation has (hopefully) started a new instance.
time
.
sleep
(
1
)
rc
=
p
.
poll
()
if
rc
is
None
:
time
.
sleep
(
4
)
rc
=
p
.
poll
()
if
rc
is
None
:
return
True
# if remote call failed, open() will try direct invocation
return
not
rc
try
:
rc
=
p
.
wait
(
5
)
# if remote call failed, open() will try direct invocation
return
not
rc
except
subprocess
.
TimeoutExpired
:
return
True
elif
self
.
background
:
if
p
.
poll
()
is
None
:
return
True
...
...
Misc/NEWS
Dosyayı görüntüle @
c9aa321a
...
...
@@ -72,6 +72,9 @@ Core and Builtins
Library
-------
-
Issue
#
15499
:
Launching
a
webbrowser
in
Unix
used
to
sleep
for
a
few
seconds
.
Original
patch
by
Anton
Barkovsky
.
-
Issue
#
15463
:
the
faulthandler
module
truncates
strings
to
500
characters
,
instead
of
100
,
to
be
able
to
display
long
file
paths
...
...
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