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
511087b0
Kaydet (Commit)
511087b0
authored
Tem 01, 2007
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix a few webbrowser.py problems.
(backport from rev. 56137)
üst
1d1e9502
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
webbrowser.py
Lib/webbrowser.py
+3
-1
No files found.
Lib/webbrowser.py
Dosyayı görüntüle @
511087b0
#! /usr/bin/env python
#! /usr/bin/env python
"""Interfaces for launching and remotely controlling Web browsers."""
"""Interfaces for launching and remotely controlling Web browsers."""
# Maintained by Georg Brandl.
import
os
import
os
import
shlex
import
shlex
...
@@ -160,6 +161,7 @@ class GenericBrowser(BaseBrowser):
...
@@ -160,6 +161,7 @@ class GenericBrowser(BaseBrowser):
def
__init__
(
self
,
name
):
def
__init__
(
self
,
name
):
if
isinstance
(
name
,
basestring
):
if
isinstance
(
name
,
basestring
):
self
.
name
=
name
self
.
name
=
name
self
.
args
=
[
"
%
s"
]
else
:
else
:
# name should be a list with arguments
# name should be a list with arguments
self
.
name
=
name
[
0
]
self
.
name
=
name
[
0
]
...
@@ -452,7 +454,7 @@ def register_X_browsers():
...
@@ -452,7 +454,7 @@ def register_X_browsers():
# if successful, register it
# if successful, register it
if
retncode
is
None
and
commd
:
if
retncode
is
None
and
commd
:
register
(
"gnome"
,
None
,
BackgroundBrowser
(
commd
.
split
(
)))
register
(
"gnome"
,
None
,
BackgroundBrowser
(
shlex
.
split
(
commd
)))
# First, the Mozilla/Netscape browsers
# First, the Mozilla/Netscape browsers
for
browser
in
(
"mozilla-firefox"
,
"firefox"
,
for
browser
in
(
"mozilla-firefox"
,
"firefox"
,
...
...
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