Commit 90f48772 authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

Fix typos

parent cd93c7ad
......@@ -1194,8 +1194,8 @@ class CMacroNode(CSimpleNode):
if ori == ext:
LOGGER.warning(
"Reflexive transition: " + ori.name + ' -> ' + ext.name +
"This transition will not be taken into account.\n"
"Please review your model or use a PermanentNode instead"
" - This transition will not be taken into account.\n"
"Please review your model or use a PermanentNode instead."
)
return
......
......@@ -70,10 +70,6 @@ class XmlVisitor:
"""
self.visit_ctop_node(self.model.get_root())
#CNode:
# def write_xml(self):
# pass
def check_name(self, name):
"""
Detect double declarations
......@@ -380,12 +376,12 @@ class MakeHandler(ContentHandler):
self.current_element.set_action(action)
self.current_element.fact_ids = fact_ids
elif name == "CMacroNode":
elif name == 'CMacroNode':
name = att.get('name', '').encode('ascii')
xloc = float(att.get('xloc', '0') )
yloc = float(att.get('yloc', '0') )
wloc = float(att.get('wloc', '5') )
hloc = float(att.get('hloc', '5') )
xloc = float(att.get('xloc', '0'))
yloc = float(att.get('yloc', '0'))
wloc = float(att.get('wloc', '5'))
hloc = float(att.get('hloc', '5'))
node = self.top_pile.add_macro_subnode(name, xloc, yloc,
wloc, hloc)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment