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
4a2ab120
Kaydet (Commit)
4a2ab120
authored
Nis 05, 2013
tarafından
Senthil Kumaran
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #17483: 3.3 Branch - Remove unreachable code in urllib.request
üst
09f0ddec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
request.py
Lib/urllib/request.py
+5
-9
No files found.
Lib/urllib/request.py
Dosyayı görüntüle @
4a2ab120
...
@@ -142,16 +142,12 @@ def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT,
...
@@ -142,16 +142,12 @@ def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT,
raise
ValueError
(
'SSL support not available'
)
raise
ValueError
(
'SSL support not available'
)
context
=
ssl
.
SSLContext
(
ssl
.
PROTOCOL_SSLv23
)
context
=
ssl
.
SSLContext
(
ssl
.
PROTOCOL_SSLv23
)
context
.
options
|=
ssl
.
OP_NO_SSLv2
context
.
options
|=
ssl
.
OP_NO_SSLv2
if
cafile
or
capath
or
cadefault
:
context
.
verify_mode
=
ssl
.
CERT_REQUIRED
context
.
verify_mode
=
ssl
.
CERT_REQUIRED
if
cafile
or
capath
:
if
cafile
or
capath
:
context
.
load_verify_locations
(
cafile
,
capath
)
context
.
load_verify_locations
(
cafile
,
capath
)
else
:
context
.
set_default_verify_paths
()
check_hostname
=
True
else
:
else
:
c
heck_hostname
=
False
c
ontext
.
set_default_verify_paths
()
https_handler
=
HTTPSHandler
(
context
=
context
,
check_hostname
=
check_hostnam
e
)
https_handler
=
HTTPSHandler
(
context
=
context
,
check_hostname
=
Tru
e
)
opener
=
build_opener
(
https_handler
)
opener
=
build_opener
(
https_handler
)
elif
_opener
is
None
:
elif
_opener
is
None
:
_opener
=
opener
=
build_opener
()
_opener
=
opener
=
build_opener
()
...
...
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