mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user