diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-05-29 20:50:56 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-05-29 20:50:56 (GMT) |
commit | eb6cd742e5211b9e11add4f00c9133caf1b46fb6 (patch) | |
tree | cd5b6b6534c6a1e7684d925b8c98a6b002fc368e | |
parent | 8c740c4d1980d811ff5614fa3b538fce499a725b (diff) | |
download | cpython-eb6cd742e5211b9e11add4f00c9133caf1b46fb6.zip cpython-eb6cd742e5211b9e11add4f00c9133caf1b46fb6.tar.gz cpython-eb6cd742e5211b9e11add4f00c9133caf1b46fb6.tar.bz2 |
Issue #27033: Removed unnecessary the bool calls.
-rwxr-xr-x | Lib/smtpd.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/smtpd.py b/Lib/smtpd.py index d63ae95..5f3b05e 100755 --- a/Lib/smtpd.py +++ b/Lib/smtpd.py @@ -134,8 +134,8 @@ class SMTPChannel(asynchat.async_chat): self.conn = conn self.addr = addr self.data_size_limit = data_size_limit - self.enable_SMTPUTF8 = enable_SMTPUTF8 = bool(enable_SMTPUTF8) - self._decode_data = decode_data = bool(decode_data) + self.enable_SMTPUTF8 = enable_SMTPUTF8 + self._decode_data = decode_data if enable_SMTPUTF8 and decode_data: raise ValueError("decode_data and enable_SMTPUTF8 cannot" " be set to True at the same time") @@ -632,8 +632,8 @@ class SMTPServer(asyncore.dispatcher): self._localaddr = localaddr self._remoteaddr = remoteaddr self.data_size_limit = data_size_limit - self.enable_SMTPUTF8 = enable_SMTPUTF8 = bool(enable_SMTPUTF8) - self._decode_data = decode_data = bool(decode_data) + self.enable_SMTPUTF8 = enable_SMTPUTF8 + self._decode_data = decode_data if enable_SMTPUTF8 and decode_data: raise ValueError("decode_data and enable_SMTPUTF8 cannot" " be set to True at the same time") |