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
a6900e8d
Kaydet (Commit)
a6900e8d
authored
Agu 30, 2007
tarafından
Thomas Wouters
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Don't lie in __all__ attributes when SSL is not available: only add the SSL
classes when they are actually created.
üst
dcb3c382
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
4 deletions
+9
-4
httplib.py
Lib/httplib.py
+2
-1
imaplib.py
Lib/imaplib.py
+2
-1
poplib.py
Lib/poplib.py
+2
-1
smtplib.py
Lib/smtplib.py
+3
-1
No files found.
Lib/httplib.py
Dosyayı görüntüle @
a6900e8d
...
...
@@ -76,7 +76,7 @@ try:
except
ImportError
:
from
StringIO
import
StringIO
__all__
=
[
"HTTP"
,
"HTTPResponse"
,
"HTTPConnection"
,
"HTTPSConnection"
,
__all__
=
[
"HTTP"
,
"HTTPResponse"
,
"HTTPConnection"
,
"HTTPException"
,
"NotConnected"
,
"UnknownProtocol"
,
"UnknownTransferEncoding"
,
"UnimplementedFileMode"
,
"IncompleteRead"
,
"InvalidURL"
,
"ImproperConnectionState"
,
...
...
@@ -1052,6 +1052,7 @@ else:
sock
=
socket
.
create_connection
((
self
.
host
,
self
.
port
),
self
.
timeout
)
self
.
sock
=
ssl
.
sslsocket
(
sock
,
self
.
key_file
,
self
.
cert_file
)
__all__
.
append
(
"HTTPSConnection"
)
class
HTTPS
(
HTTP
):
"""Compatibility with 1.5 httplib interface
...
...
Lib/imaplib.py
Dosyayı görüntüle @
a6900e8d
...
...
@@ -24,7 +24,7 @@ __version__ = "2.58"
import
binascii
,
os
,
random
,
re
,
socket
,
sys
,
time
__all__
=
[
"IMAP4"
,
"IMAP4_
SSL"
,
"IMAP4_
stream"
,
"Internaldate2tuple"
,
__all__
=
[
"IMAP4"
,
"IMAP4_stream"
,
"Internaldate2tuple"
,
"Int2AP"
,
"ParseFlags"
,
"Time2Internaldate"
]
# Globals
...
...
@@ -1205,6 +1205,7 @@ else:
"""
return
self
.
sslobj
__all__
.
append
(
"IMAP4_SSL"
)
class
IMAP4_stream
(
IMAP4
):
...
...
Lib/poplib.py
Dosyayı görüntüle @
a6900e8d
...
...
@@ -15,7 +15,7 @@ Based on the J. Myers POP3 draft, Jan. 96
import
re
,
socket
__all__
=
[
"POP3"
,
"error_proto"
,
"POP3_SSL"
]
__all__
=
[
"POP3"
,
"error_proto"
]
# Exception raised when an error or invalid response is received:
...
...
@@ -397,6 +397,7 @@ else:
del
self
.
sslobj
,
self
.
sock
return
resp
__all__
.
append
(
"POP3_SSL"
)
if
__name__
==
"__main__"
:
import
sys
...
...
Lib/smtplib.py
Dosyayı görüntüle @
a6900e8d
...
...
@@ -52,7 +52,7 @@ from sys import stderr
__all__
=
[
"SMTPException"
,
"SMTPServerDisconnected"
,
"SMTPResponseException"
,
"SMTPSenderRefused"
,
"SMTPRecipientsRefused"
,
"SMTPDataError"
,
"SMTPConnectError"
,
"SMTPHeloError"
,
"SMTPAuthenticationError"
,
"quoteaddr"
,
"quotedata"
,
"SMTP"
,
"SMTP_SSL"
]
"quoteaddr"
,
"quotedata"
,
"SMTP"
]
SMTP_PORT
=
25
SMTP_SSL_PORT
=
465
...
...
@@ -725,6 +725,8 @@ if _have_ssl:
self
.
sock
=
SSLFakeSocket
(
self
.
sock
,
sslobj
)
self
.
file
=
SSLFakeFile
(
sslobj
)
__all__
.
append
(
"SMTP_SSL"
)
#
# LMTP extension
#
...
...
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