Mercurial > hg > orthanc-stone
diff Resources/CodeGeneration/stonegentool.py @ 674:163ac23b8bff am-dev
cleanup + fix warning in codegen
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Thu, 16 May 2019 09:25:42 +0200 |
parents | 5dd496343fad |
children | 1b47f17863ba |
line wrap: on
line diff
--- 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):