Skip to content

Commit

Permalink
tools: use is None consistently in Python
Browse files Browse the repository at this point in the history
We use `is None` instead of `== None` everywhere (which mostly just
means test.py) except in one place in genv8constants.py. Switch to `is
None` in genv8constants.py. This is slightly more efficient, although I
can't imagine that makes a measurable difference here.

PR-URL: #36606
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
Trott authored and danielleadams committed Jan 12, 2021
1 parent a8a427f commit 7664f36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/genv8constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def out_define():
curr_octet += 1

match = pattern.match(line)
if match == None:
if match is None:
continue

# Print previous symbol
Expand Down

0 comments on commit 7664f36

Please sign in to comment.