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
This commit is contained in:
Wansoo Kim 2020-11-28 20:37:08 +09:00 committed by GitHub
parent e4fe303b8c
commit 5b0194ed31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View 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