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/icu | |
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/icu')
-rwxr-xr-x | tools/icu/icutrim.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/icu/icutrim.py b/tools/icu/icutrim.py index 116af32e02..a825b18ac0 100755 --- a/tools/icu/icutrim.py +++ b/tools/icu/icutrim.py @@ -110,7 +110,7 @@ if options.endian not in ("big","little","host"): print("Unknown endianness: %s" % options.endian) sys.exit(1) -if options.endian is "host": +if options.endian == "host": options.endian = endian if not os.path.isdir(options.tmpdir): @@ -153,7 +153,7 @@ def runcmd(tool, cmd, doContinue=False): print("# " + cmd) rc = os.system(cmd) - if rc is not 0 and not doContinue: + if rc != 0 and not doContinue: print("FAILED: %s" % cmd) sys.exit(1) return rc @@ -320,7 +320,7 @@ def removeList(count=0): print(i, file=fi) fi.close() rc = runcmd("icupkg","-r %s %s 2> %s" % (removefile,outfile,hackerrfile),True) - if rc is not 0: + if rc != 0: if(options.verbose>5): print("## Damage control, trying to parse stderr from icupkg..") fi = open(hackerrfile, 'rb') |