Skip to content

Commit 7664f36

Browse files
Trottdanielleadams
authored andcommitted
tools: use is None consistently in Python
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 <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent a8a427f commit 7664f36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/genv8constants.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def out_define():
9595
curr_octet += 1
9696

9797
match = pattern.match(line)
98-
if match == None:
98+
if match is None:
9999
continue
100100

101101
# Print previous symbol

0 commit comments

Comments
 (0)