# HG changeset patch # User Alain Mazy # Date 1557991591 -7200 # Node ID a285a0c0a7205cadd79812072bd55fe5117607b1 # Parent 86930bc676c6f5640835526f6b1815206670efda# Parent 163ac23b8bff23a253deae8c4b92f8940623044b Merged am-dev into default diff -r 86930bc676c6 -r a285a0c0a720 Resources/CodeGeneration/stonegentool.py --- a/Resources/CodeGeneration/stonegentool.py Wed May 15 18:54:55 2019 +0200 +++ b/Resources/CodeGeneration/stonegentool.py Thu May 16 09:26:31 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):