summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWansoo Kim <rladhkstn8@gmail.com>2020-11-28 11:37:08 (GMT)
committerGitHub <noreply@github.com>2020-11-28 11:37:08 (GMT)
commit5b0194ed31376382da63ad5b10271a4acc4a80e8 (patch)
tree3ea03ba797b509872b58cfd20bc196b76c7f568b
parente4fe303b8cca525e97d44e80c7e53bdab9dd9187 (diff)
downloadcpython-5b0194ed31376382da63ad5b10271a4acc4a80e8.zip
cpython-5b0194ed31376382da63ad5b10271a4acc4a80e8.tar.gz
cpython-5b0194ed31376382da63ad5b10271a4acc4a80e8.tar.bz2
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
-rw-r--r--Lib/asyncio/futures.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/futures.py b/Lib/asyncio/futures.py
index bed4da5..2d22ef6 100644
--- a/Lib/asyncio/futures.py
+++ b/Lib/asyncio/futures.py
@@ -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