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
2c94bf7d
Kaydet (Commit)
2c94bf7d
authored
Eyl 24, 2006
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix webbrowser.BackgroundBrowser on Windows.
üst
e0426012
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
webbrowser.py
Lib/webbrowser.py
+11
-5
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/webbrowser.py
Dosyayı görüntüle @
2c94bf7d
...
...
@@ -165,7 +165,10 @@ class GenericBrowser(BaseBrowser):
cmdline
=
[
self
.
name
]
+
[
arg
.
replace
(
"
%
s"
,
url
)
for
arg
in
self
.
args
]
try
:
p
=
subprocess
.
Popen
(
cmdline
,
close_fds
=
True
)
if
sys
.
platform
[:
3
]
==
'win'
:
p
=
subprocess
.
Popen
(
cmdline
)
else
:
p
=
subprocess
.
Popen
(
cmdline
,
close_fds
=
True
)
return
not
p
.
wait
()
except
OSError
:
return
False
...
...
@@ -178,11 +181,14 @@ class BackgroundBrowser(GenericBrowser):
def
open
(
self
,
url
,
new
=
0
,
autoraise
=
1
):
cmdline
=
[
self
.
name
]
+
[
arg
.
replace
(
"
%
s"
,
url
)
for
arg
in
self
.
args
]
setsid
=
getattr
(
os
,
'setsid'
,
None
)
if
not
setsid
:
setsid
=
getattr
(
os
,
'setpgrp'
,
None
)
try
:
p
=
subprocess
.
Popen
(
cmdline
,
close_fds
=
True
,
preexec_fn
=
setsid
)
if
sys
.
platform
[:
3
]
==
'win'
:
p
=
subprocess
.
Popen
(
cmdline
)
else
:
setsid
=
getattr
(
os
,
'setsid'
,
None
)
if
not
setsid
:
setsid
=
getattr
(
os
,
'setpgrp'
,
None
)
p
=
subprocess
.
Popen
(
cmdline
,
close_fds
=
True
,
preexec_fn
=
setsid
)
return
(
p
.
poll
()
is
None
)
except
OSError
:
return
False
...
...
Misc/NEWS
Dosyayı görüntüle @
2c94bf7d
...
...
@@ -52,6 +52,9 @@ Core and builtins
Library
-------
- Make webbrowser.BackgroundBrowser usable in Windows (it wasn'
t
because
the
close_fds
arg
to
subprocess
.
Popen
is
not
supported
).
-
Reverted
patch
#
1504333
to
sgmllib
because
it
introduced
an
infinite
loop
.
-
Patch
#
1553314
:
Fix
the
inspect
.
py
slowdown
that
was
hurting
IPython
&
SAGE
...
...
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