]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-41241: Unnecessary Type casting in 'if condition' (GH-21396)
authorWansoo Kim <rladhkstn8@gmail.com>
Sat, 28 Nov 2020 11:37:08 +0000 (20:37 +0900)
committerGitHub <noreply@github.com>
Sat, 28 Nov 2020 11:37:08 +0000 (03:37 -0800)
This is my first issue!
So, if there's anything wrong, please tell me!

Also, thank you always for all the contributors!

Automerge-Triggered-By: GH:asvetlov
Lib/asyncio/futures.py

index bed4da52fd4d98b9413be0f92541d41f86cead46..2d22ef66c9c4267c1a8e541221aa7ba673d49b80 100644 (file)
@@ -115,7 +115,7 @@ class Future:
 
     @_log_traceback.setter
     def _log_traceback(self, val):
-        if bool(val):
+        if val:
             raise ValueError('_log_traceback can only be set to False')
         self.__log_traceback = False