diff options
author | Refael Ackermann <refack@gmail.com> | 2019-04-13 17:38:23 -0400 |
---|---|---|
committer | Refael Ackermann <refack@gmail.com> | 2019-04-13 20:33:01 -0400 |
commit | a16a0fe9629325ae1dd81827c6071ca972d7449a (patch) | |
tree | 00bf22084787de666e5250152de02832eb045518 /tools/js2c.py | |
parent | 0befda69703e1599ab712d560984c27b251f1c62 (diff) | |
download | android-node-v8-a16a0fe9629325ae1dd81827c6071ca972d7449a.tar.gz android-node-v8-a16a0fe9629325ae1dd81827c6071ca972d7449a.tar.bz2 android-node-v8-a16a0fe9629325ae1dd81827c6071ca972d7449a.zip |
tools: python: activate more flake8 rules
PR-URL: https://github.com/nodejs/node/pull/25614
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Diffstat (limited to 'tools/js2c.py')
-rwxr-xr-x | tools/js2c.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/js2c.py b/tools/js2c.py index eff44940c5..d7d0c710b1 100755 --- a/tools/js2c.py +++ b/tools/js2c.py @@ -149,7 +149,8 @@ def ReadMacros(lines): hash = line.find('#') if hash != -1: line = line[:hash] line = line.strip() - if len(line) is 0: continue + if len(line) == 0: + continue const_match = CONST_PATTERN.match(line) if const_match: name = const_match.group(1) |