Commit 9f647a04 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

Appease new version of flake8

parent 6dd0be6f
......@@ -142,6 +142,7 @@ def FixupAstForSQL() -> None:
if not neededToAddPseudoType():
break
g_bStartupRun = False
......@@ -289,6 +290,7 @@ def CreateSequenceOf(nodeTypename: str, node: AsnSequenceOrSetOf, unused_leafTyp
def CreateChoice(nodeTypename: str, node: AsnChoice, leafTypeDict: AST_Leaftypes) -> None:
CommonSeqSetChoice(nodeTypename, node, leafTypeDict, True)
g_bShutdownRun = False
......
......@@ -522,6 +522,7 @@ class {cleanTypename}_SQL(Base):
def CreateChoice(nodeTypename: str, node: AsnChoice, _: AST_Leaftypes) -> None:
CommonSeqSetChoice(nodeTypename, node, _, isChoice=True)
g_bShutdownRun = False
......
......@@ -176,6 +176,7 @@ void TeleCmds::CreateControls()
''')
enumFieldNames = {} # type: Dict[str, int]
......@@ -972,6 +973,7 @@ def WriteCodeForAction(nodeTypename: str,
g_MyAction.write(" }\n")
g_MyAction.write("}\n")
g_SPs = [] # type: List[str]
g_bBraceOpen = False
......
......@@ -236,6 +236,7 @@ def main() -> None:
if 'OnShutdown' in dir(backend):
backend.OnShutdown(badTypes)
if __name__ == "__main__":
if "-pdb" in sys.argv:
sys.argv.remove("-pdb") # pragma: no cover
......
......@@ -986,6 +986,7 @@ def test_xml() -> None:
print("\nRe-created grammar:\n\n")
PrintGrammarFromASTtoStdOut()
if __name__ == "__main__":
if "-testXML" in sys.argv:
sys.argv.remove("-testXML")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment