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
380ef012
Kaydet (Commit)
380ef012
authored
Haz 06, 2016
tarafından
Martin Panter
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #27110: Add smtpd.SMTPChannel to __all__, by Jacek Kołodziej
üst
d04d2137
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
smtpd.py
Lib/smtpd.py
+4
-1
test_smtpd.py
Lib/test/test_smtpd.py
+11
-0
No files found.
Lib/smtpd.py
Dosyayı görüntüle @
380ef012
...
...
@@ -89,7 +89,10 @@ import collections
from
warnings
import
warn
from
email._header_value_parser
import
get_addr_spec
,
get_angle_addr
__all__
=
[
"SMTPServer"
,
"DebuggingServer"
,
"PureProxy"
,
"MailmanProxy"
]
__all__
=
[
"SMTPChannel"
,
"SMTPServer"
,
"DebuggingServer"
,
"PureProxy"
,
"MailmanProxy"
,
]
program
=
sys
.
argv
[
0
]
__version__
=
'Python SMTP proxy version 0.3'
...
...
Lib/test/test_smtpd.py
Dosyayı görüntüle @
380ef012
...
...
@@ -998,5 +998,16 @@ class SMTPDChannelTestWithEnableSMTPUTF8True(unittest.TestCase):
self
.
write_line
(
b
'test
\r\n
.'
)
self
.
assertEqual
(
self
.
channel
.
socket
.
last
[
0
:
3
],
b
'250'
)
class
MiscTestCase
(
unittest
.
TestCase
):
def
test__all__
(
self
):
blacklist
=
{
"program"
,
"Devnull"
,
"DEBUGSTREAM"
,
"NEWLINE"
,
"COMMASPACE"
,
"DATA_SIZE_DEFAULT"
,
"usage"
,
"Options"
,
"parseargs"
,
}
support
.
check__all__
(
self
,
smtpd
,
blacklist
=
blacklist
)
if
__name__
==
"__main__"
:
unittest
.
main
()
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