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
eb6cd742
Kaydet (Commit)
eb6cd742
authored
May 29, 2016
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #27033: Removed unnecessary the bool calls.
üst
8c740c4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
smtpd.py
Lib/smtpd.py
+4
-4
No files found.
Lib/smtpd.py
Dosyayı görüntüle @
eb6cd742
...
@@ -134,8 +134,8 @@ class SMTPChannel(asynchat.async_chat):
...
@@ -134,8 +134,8 @@ class SMTPChannel(asynchat.async_chat):
self
.
conn
=
conn
self
.
conn
=
conn
self
.
addr
=
addr
self
.
addr
=
addr
self
.
data_size_limit
=
data_size_limit
self
.
data_size_limit
=
data_size_limit
self
.
enable_SMTPUTF8
=
enable_SMTPUTF8
=
bool
(
enable_SMTPUTF8
)
self
.
enable_SMTPUTF8
=
enable_SMTPUTF8
self
.
_decode_data
=
decode_data
=
bool
(
decode_data
)
self
.
_decode_data
=
decode_data
if
enable_SMTPUTF8
and
decode_data
:
if
enable_SMTPUTF8
and
decode_data
:
raise
ValueError
(
"decode_data and enable_SMTPUTF8 cannot"
raise
ValueError
(
"decode_data and enable_SMTPUTF8 cannot"
" be set to True at the same time"
)
" be set to True at the same time"
)
...
@@ -632,8 +632,8 @@ class SMTPServer(asyncore.dispatcher):
...
@@ -632,8 +632,8 @@ class SMTPServer(asyncore.dispatcher):
self
.
_localaddr
=
localaddr
self
.
_localaddr
=
localaddr
self
.
_remoteaddr
=
remoteaddr
self
.
_remoteaddr
=
remoteaddr
self
.
data_size_limit
=
data_size_limit
self
.
data_size_limit
=
data_size_limit
self
.
enable_SMTPUTF8
=
enable_SMTPUTF8
=
bool
(
enable_SMTPUTF8
)
self
.
enable_SMTPUTF8
=
enable_SMTPUTF8
self
.
_decode_data
=
decode_data
=
bool
(
decode_data
)
self
.
_decode_data
=
decode_data
if
enable_SMTPUTF8
and
decode_data
:
if
enable_SMTPUTF8
and
decode_data
:
raise
ValueError
(
"decode_data and enable_SMTPUTF8 cannot"
raise
ValueError
(
"decode_data and enable_SMTPUTF8 cannot"
" be set to True at the same time"
)
" be set to True at the same time"
)
...
...
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