Mercurial > hg > orthanc-stone
changeset 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 | 3f13f7f1b55d |
children | a285a0c0a720 1b47f17863ba |
files | Resources/CodeGeneration/stonegentool.py |
diffstat | 1 files changed, 1 insertions(+), 6 deletions(-) [+] |
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):