aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rumba/model.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/rumba/model.py b/rumba/model.py
index 19c1182..2337d19 100644
--- a/rumba/model.py
+++ b/rumba/model.py
@@ -175,7 +175,8 @@ class Node:
s += " DIF registrations: [ "
rl = []
- for dif_a, difs in self.dif_registrations.items():
+ for dif_a in self.dif_registrations:
+ difs = self.dif_registrations[dif_a]
x = "%s => [" % dif_a.name
x += " ".join([dif_b.name for dif_b in difs])
x += "]"
@@ -184,14 +185,16 @@ class Node:
s += " ]\n"
s += " Name registrations: [ "
- for name, difs in self.registrations.items():
+ for name in self.registrations:
+ difs = self.registrations[name]
s += "%s => [ " % name
- s += " ".join([dif.name for dif in difs])
+ s += ", ".join([dif.name for dif in difs])
s += " ]"
s += " ]\n"
s += " Bindings: [ "
- s += ", ".join(["'%s' => '%s'" % (ap, name) for ap, name in self.bindings.items()])
+ s += ", ".join(["'%s' => '%s'" % (ap, self.bindings[ap]) \
+ for ap in self.bindings])
s += " ]\n"
return s