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
de7cadec
Kaydet (Commit)
de7cadec
authored
Agu 08, 2002
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Extend __all__ with the exports list of the _ssl module.
üst
7c3b6347
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
socket.py
Lib/socket.py
+4
-1
No files found.
Lib/socket.py
Dosyayı görüntüle @
de7cadec
...
@@ -45,6 +45,7 @@ from _socket import *
...
@@ -45,6 +45,7 @@ from _socket import *
_have_ssl
=
False
_have_ssl
=
False
try
:
try
:
import
_ssl
from
_ssl
import
*
from
_ssl
import
*
_have_ssl
=
True
_have_ssl
=
True
except
ImportError
:
except
ImportError
:
...
@@ -54,7 +55,8 @@ import os, sys
...
@@ -54,7 +55,8 @@ import os, sys
__all__
=
[
"getfqdn"
]
__all__
=
[
"getfqdn"
]
__all__
.
extend
(
os
.
_get_exports_list
(
_socket
))
__all__
.
extend
(
os
.
_get_exports_list
(
_socket
))
# XXX shouldn't there be something similar to the above for _ssl exports?
if
_have_ssl
:
__all__
.
extend
(
os
.
_get_exports_list
(
_ssl
))
_realsocket
=
socket
_realsocket
=
socket
_needwrapper
=
False
_needwrapper
=
False
...
@@ -90,6 +92,7 @@ if sys.platform.lower().startswith("win"):
...
@@ -90,6 +92,7 @@ if sys.platform.lower().startswith("win"):
errorTab
[
10064
]
=
"The host is down."
errorTab
[
10064
]
=
"The host is down."
errorTab
[
10065
]
=
"The host is unreachable."
errorTab
[
10065
]
=
"The host is unreachable."
__all__
.
append
(
"errorTab"
)
__all__
.
append
(
"errorTab"
)
del
os
,
sys
del
os
,
sys
...
...
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