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:
Chris Hennes
2021-02-25 14:02:51 -06:00
committed by wwmayer
parent 26ce308cf1
commit 648ae39f50
7 changed files with 30 additions and 74 deletions

View File

@@ -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()