changeset: 101564:71813a05e488 user: Serhiy Storchaka date: Sun May 29 23:50:56 2016 +0300 files: Lib/smtpd.py description: Issue #27033: Removed unnecessary the bool calls. diff -r 9abde519cc1e -r 71813a05e488 Lib/smtpd.py --- a/Lib/smtpd.py Sun May 29 23:43:24 2016 +0300 +++ b/Lib/smtpd.py Sun May 29 23:50:56 2016 +0300 @@ -134,8 +134,8 @@ 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 @@ 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")