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
92037a15
Kaydet (Commit)
92037a15
authored
Ock 24, 2006
tarafından
Tim Peters
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Whitespace normalization.
üst
e101df97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
urllib.py
Lib/urllib.py
+4
-4
No files found.
Lib/urllib.py
Dosyayı görüntüle @
92037a15
...
@@ -299,7 +299,7 @@ class URLopener:
...
@@ -299,7 +299,7 @@ class URLopener:
#print "proxy via http:", host, selector
#print "proxy via http:", host, selector
if
not
host
:
raise
IOError
,
(
'http error'
,
'no host given'
)
if
not
host
:
raise
IOError
,
(
'http error'
,
'no host given'
)
if
proxy_passwd
:
if
proxy_passwd
:
import
base64
import
base64
proxy_auth
=
base64
.
encodestring
(
proxy_passwd
)
.
strip
()
proxy_auth
=
base64
.
encodestring
(
proxy_passwd
)
.
strip
()
...
@@ -672,7 +672,7 @@ class FancyURLopener(URLopener):
...
@@ -672,7 +672,7 @@ class FancyURLopener(URLopener):
return
getattr
(
self
,
name
)(
url
,
realm
)
return
getattr
(
self
,
name
)(
url
,
realm
)
else
:
else
:
return
getattr
(
self
,
name
)(
url
,
realm
,
data
)
return
getattr
(
self
,
name
)(
url
,
realm
,
data
)
def
http_error_407
(
self
,
url
,
fp
,
errcode
,
errmsg
,
headers
,
data
=
None
):
def
http_error_407
(
self
,
url
,
fp
,
errcode
,
errmsg
,
headers
,
data
=
None
):
"""Error 407 -- proxy authentication required.
"""Error 407 -- proxy authentication required.
This function supports Basic authentication only."""
This function supports Basic authentication only."""
...
@@ -694,7 +694,7 @@ class FancyURLopener(URLopener):
...
@@ -694,7 +694,7 @@ class FancyURLopener(URLopener):
return
getattr
(
self
,
name
)(
url
,
realm
)
return
getattr
(
self
,
name
)(
url
,
realm
)
else
:
else
:
return
getattr
(
self
,
name
)(
url
,
realm
,
data
)
return
getattr
(
self
,
name
)(
url
,
realm
,
data
)
def
retry_proxy_http_basic_auth
(
self
,
url
,
realm
,
data
=
None
):
def
retry_proxy_http_basic_auth
(
self
,
url
,
realm
,
data
=
None
):
host
,
selector
=
splithost
(
url
)
host
,
selector
=
splithost
(
url
)
newurl
=
'http://'
+
host
+
selector
newurl
=
'http://'
+
host
+
selector
...
@@ -728,7 +728,7 @@ class FancyURLopener(URLopener):
...
@@ -728,7 +728,7 @@ class FancyURLopener(URLopener):
return
self
.
open
(
newurl
)
return
self
.
open
(
newurl
)
else
:
else
:
return
self
.
open
(
newurl
,
data
)
return
self
.
open
(
newurl
,
data
)
def
retry_http_basic_auth
(
self
,
url
,
realm
,
data
=
None
):
def
retry_http_basic_auth
(
self
,
url
,
realm
,
data
=
None
):
host
,
selector
=
splithost
(
url
)
host
,
selector
=
splithost
(
url
)
i
=
host
.
find
(
'@'
)
+
1
i
=
host
.
find
(
'@'
)
+
1
...
...
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