diff --git a/tools/genv8constants.py b/tools/genv8constants.py index 8ab2ed8bae50c0..f750ca4de7523f 100755 --- a/tools/genv8constants.py +++ b/tools/genv8constants.py @@ -14,7 +14,7 @@ import errno if len(sys.argv) != 3: - print("usage: objsym.py outfile libv8_base.a") + print("Usage: genv8constants.py outfile libv8_base.a") sys.exit(2) outfile = open(sys.argv[1], 'w') @@ -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 @@ -113,3 +113,5 @@ def out_define(): #endif /* V8_CONSTANTS_H */ """) + +outfile.close()