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
91932da3
Kaydet (Commit)
91932da3
authored
Şub 24, 2012
tarafından
Ezio Melotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#13973: move a couple of imports at module level. Patch by Tshepang Lekhonkhobe.
üst
2fe4bb10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
client.py
Lib/xmlrpc/client.py
+1
-2
No files found.
Lib/xmlrpc/client.py
Dosyayı görüntüle @
91932da3
...
@@ -132,6 +132,7 @@ import sys
...
@@ -132,6 +132,7 @@ import sys
import
time
import
time
from
datetime
import
datetime
from
datetime
import
datetime
import
http.client
import
http.client
import
urllib.parse
from
xml.parsers
import
expat
from
xml.parsers
import
expat
import
socket
import
socket
import
errno
import
errno
...
@@ -1190,7 +1191,6 @@ class Transport:
...
@@ -1190,7 +1191,6 @@ class Transport:
if
isinstance
(
host
,
tuple
):
if
isinstance
(
host
,
tuple
):
host
,
x509
=
host
host
,
x509
=
host
import
urllib.parse
auth
,
host
=
urllib
.
parse
.
splituser
(
host
)
auth
,
host
=
urllib
.
parse
.
splituser
(
host
)
if
auth
:
if
auth
:
...
@@ -1383,7 +1383,6 @@ class ServerProxy:
...
@@ -1383,7 +1383,6 @@ class ServerProxy:
# establish a "logical" server connection
# establish a "logical" server connection
# get the url
# get the url
import
urllib.parse
type
,
uri
=
urllib
.
parse
.
splittype
(
uri
)
type
,
uri
=
urllib
.
parse
.
splittype
(
uri
)
if
type
not
in
(
"http"
,
"https"
):
if
type
not
in
(
"http"
,
"https"
):
raise
IOError
(
"unsupported XML-RPC protocol"
)
raise
IOError
(
"unsupported XML-RPC protocol"
)
...
...
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