Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2020-12-22 19:44:04 +0300
committerDanielle Adams <adamzdanielle@gmail.com>2021-01-12 15:09:21 +0300
commit7664f3678c27a94b5a714beacea132f1f1e0c44c (patch)
tree627e6e7e44d4e151b4846bfc8e7ddcd8135a7210 /tools
parenta8a427f6461a0a4b6ca7a2a6ec461f82733025d0 (diff)
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>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/genv8constants.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/genv8constants.py b/tools/genv8constants.py
index 8ab2ed8bae5..cb648d39ce7 100755
--- a/tools/genv8constants.py
+++ b/tools/genv8constants.py
@@ -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