changeset 675:a285a0c0a720

Merged am-dev into default
author Alain Mazy <am@osimis.io>
date Thu, 16 May 2019 09:26:31 +0200
parents 86930bc676c6 (current diff) 163ac23b8bff (diff)
children 979963fd3725
files
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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):