8000 bpo-41241: Unnecessary Type casting in 'if condition' (GH-21396) · python/cpython@5b0194e · GitHub
[go: up one dir, main page]

Skip to content

Commit 5b0194e

Browse files
authored
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
1 parent e4fe303 commit 5b0194e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/asyncio/futures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def _log_traceback(self):
115115

116116
@_log_traceback.setter
117117
def _log_traceback(self, val):
118-
if bool(val):
118+
if val:
119119
raise ValueError('_log_traceback can only be set to False')
120120
self.__log_traceback = False
121121

0 commit comments

Comments
 (0)
0