Issue #27033: Removed unnecessary the bool calls.

This commit is contained in:
Serhiy Storchaka 2016-05-29 23:50:56 +03:00
parent 8c740c4d19
commit eb6cd742e5
1 changed files with 4 additions and 4 deletions

View File

@ -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):
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")