Clean up various LGTM-flagged items
Static analysis showed some unused variables and imports, and running the code in Python 3.9 revealed a few invalid escapes (previous versions of Python silently "fixed" these, so the code change here will not affect the results).
This commit is contained in:
@@ -27,8 +27,7 @@
|
||||
#* Werner Mayer 2003 *
|
||||
#***************************************************************************
|
||||
|
||||
import os,sys,string
|
||||
import FCFileTools
|
||||
import os,sys
|
||||
import MakeAppTools
|
||||
import re
|
||||
|
||||
@@ -110,7 +109,7 @@ def validateApp(AppName):
|
||||
clName="class "+AppName+": self=0"
|
||||
try:
|
||||
exec(clName)
|
||||
except:
|
||||
except Exception:
|
||||
# Invalid class name
|
||||
sys.stdout.write("Invalid name: '"+AppName+"'\n")
|
||||
sys.exit()
|
||||
|
||||
Reference in New Issue
Block a user