# HG changeset patch # User Alain Mazy # Date 1557991542 -7200 # Node ID 163ac23b8bff23a253deae8c4b92f8940623044b # Parent 3f13f7f1b55d5ba71dd5ef92e321e99b4c06f952 cleanup + fix warning in codegen diff -r 3f13f7f1b55d -r 163ac23b8bff Resources/CodeGeneration/stonegentool.py --- a/Resources/CodeGeneration/stonegentool.py Thu May 16 09:11:14 2019 +0200 +++ b/Resources/CodeGeneration/stonegentool.py Thu May 16 09:25:42 2019 +0200 @@ -533,12 +533,7 @@ if not (nextCh == ' ' or nextCh == '\n'): lineNumber = schemaText.count("\n",0,i) + 1 raise RuntimeError("Error at line " + str(lineNumber) + " in the schema: colons must be followed by a space or a newline!") - schema = yaml.load(schemaText) - print("*******************************************") - print("*******************************************") - print(schema["struct EventBase"]) - print("*******************************************") - print("*******************************************") + schema = yaml.load(schemaText, Loader = yaml.SafeLoader) return schema def GetTemplatingDictFromSchemaFilename(fn):