diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2021-08-31 13:59:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-31 13:59:52 (GMT) |
commit | 3c65457156d87e55010507d616b4eecb7a02883d (patch) | |
tree | a472bfd630afb07817c381852549f24bdfb9d01f /Tools/clinic/clinic.py | |
parent | 08767c73b5bf1f28792d5fef7f41d52822a4989f (diff) | |
download | cpython-3c65457156d87e55010507d616b4eecb7a02883d.zip cpython-3c65457156d87e55010507d616b4eecb7a02883d.tar.gz cpython-3c65457156d87e55010507d616b4eecb7a02883d.tar.bz2 |
bpo-45060: Get rid of few uses of the equality operators with None (GH-28087)
Diffstat (limited to 'Tools/clinic/clinic.py')
-rwxr-xr-x | Tools/clinic/clinic.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py index b5a8845..d6a820d 100755 --- a/Tools/clinic/clinic.py +++ b/Tools/clinic/clinic.py @@ -1691,7 +1691,7 @@ class BlockPrinter: dsl_name = block.dsl_name write = self.f.write - assert not ((dsl_name == None) ^ (output == None)), "you must specify dsl_name and output together, dsl_name " + repr(dsl_name) + assert not ((dsl_name is None) ^ (output is None)), "you must specify dsl_name and output together, dsl_name " + repr(dsl_name) if not dsl_name: write(input) @@ -3003,7 +3003,7 @@ class int_converter(CConverter): self.format_unit = 'C' elif accept != {int}: fail("int_converter: illegal 'accept' argument " + repr(accept)) - if type != None: + if type is not None: self.type = type def parse_arg(self, argname, displayname): |