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: https://github.com/nodejs/node/pull/36606
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Rich Trott
2020-12-22 08:44:04 -08:00
parent 73a21e4c06
commit 36c17e2f51

View File

@@ -95,7 +95,7 @@ for line in pipe:
curr_octet += 1
match = pattern.match(line)
if match == None:
if match is None:
continue
# Print previous symbol