[Python-checkins] bpo-41241: Unnecessary Type casting in 'if condition' (GH-21396)
miss-islington
webhook-mailer at python.org
Sat Nov 28 06:37:27 EST 2020
https://github.com/python/cpython/commit/5b0194ed31376382da63ad5b10271a4acc4a80e8
commit: 5b0194ed31376382da63ad5b10271a4acc4a80e8
branch: master
author: Wansoo Kim <rladhkstn8 at gmail.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2020-11-28T03:37:08-08:00
summary:
bpo-41241: Unnecessary Type casting in 'if condition' (GH-21396)
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
files:
M Lib/asyncio/futures.py
diff --git a/Lib/asyncio/futures.py b/Lib/asyncio/futures.py
index bed4da52fd4d9..2d22ef66c9c42 100644
--- a/Lib/asyncio/futures.py
+++ b/Lib/asyncio/futures.py
@@ -115,7 +115,7 @@ def _log_traceback(self):
@_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
More information about the Python-checkins
mailing list