]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #27033: Removed unnecessary the bool calls.
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 29 May 2016 20:50:56 +0000 (23:50 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Sun, 29 May 2016 20:50:56 +0000 (23:50 +0300)
Lib/smtpd.py

index d63ae95d464e1613a9fff5bd3561b3f32784f69a..5f3b05eff86e46e487fe1eb00c07d29ad98d7938 100755 (executable)
@@ -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")