Skip to content
Open
Prev Previous commit
Next Next commit
fix lint
  • Loading branch information
aduh95 committed Feb 27, 2022
commit d85d9b83a2ad51ba3f53cee6a887a38c78dd084b
7 changes: 4 additions & 3 deletions tools/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,10 @@ def createKnowGlobalsJSON():
]
isReadingGlobals = False
try:
FileNotFoundError
# Python 3
FileNotFoundError # noqa: F823
except NameError:
# py2.X
# Python 2
FileNotFoundError = IOError
restrictedGlobalDeclaration = re.compile("^\s{4}- name:\s?([^#\s]+)")
closingSectionLine = re.compile("^\s{0,3}[^#\s]")
Expand Down Expand Up @@ -1606,7 +1607,7 @@ def Main():
if not ProcessOptions(options):
parser.print_help()
return 1

if options.create_knownGlobal_json:
createKnowGlobalsJSON()
return 0
Expand Down