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 committed 2020-12-25 04:28:27 -08:00
1 parent 73a21e4c06
commit 36c17e2f51
1 file changed
+1 -1
+1 -1
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