From 26d5965c7730875dfa59a39177957a0c98f3f327 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 22 Dec 2020 08:44:04 -0800 Subject: [PATCH] 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 Reviewed-By: Luigi Pinca --- tools/genv8constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/genv8constants.py b/tools/genv8constants.py index 8ab2ed8bae50c0..cb648d39ce7a18 100755 --- a/tools/genv8constants.py +++ b/tools/genv8constants.py @@ -95,7 +95,7 @@ def out_define(): curr_octet += 1 match = pattern.match(line) - if match == None: + if match is None: continue # Print previous symbol