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
df0d87a9
Kaydet (Commit)
df0d87a9
authored
May 18, 2003
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
To be on the safe side, backed out any questionable iteritem changes and set back to item calls.
üst
03eaf8b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
urllib2.py
Lib/urllib2.py
+2
-2
No files found.
Lib/urllib2.py
Dosyayı görüntüle @
df0d87a9
...
...
@@ -478,7 +478,7 @@ class ProxyHandler(BaseHandler):
proxies
=
getproxies
()
assert
hasattr
(
proxies
,
'has_key'
),
"proxies must be a mapping"
self
.
proxies
=
proxies
for
type
,
url
in
proxies
.
ite
rite
ms
():
for
type
,
url
in
proxies
.
items
():
setattr
(
self
,
'
%
s_open'
%
type
,
lambda
r
,
proxy
=
url
,
type
=
type
,
meth
=
self
.
proxy_open
:
\
meth
(
r
,
proxy
,
type
))
...
...
@@ -805,7 +805,7 @@ class AbstractHTTPHandler(BaseHandler):
name
,
value
=
args
if
name
not
in
req
.
headers
:
h
.
putheader
(
*
args
)
for
k
,
v
in
req
.
headers
.
ite
rite
ms
():
for
k
,
v
in
req
.
headers
.
items
():
h
.
putheader
(
k
,
v
)
# httplib will attempt to connect() here. be prepared
# to convert a socket error to a URLError.
...
...
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