Commit ce83ac7b authored by Francois Keith's avatar Francois Keith
Browse files

Handle the unlikely case where an entity has no signal.

parent ec70c041
......@@ -112,10 +112,13 @@ class Entity (object) :
Print the list of signals into standard output: temporary.
"""
signals = self.signals()
display ("--- <" + self.name + "> signal list: ")
for s in signals[:-1]:
display(" |-- <" + str(s))
display(" `-- <" + str(signals[-1]))
if len(signals) == 0:
display ("--- <" + self.name + "> has no signal")
else:
display ("--- <" + self.name + "> signal list: ")
for s in signals[:-1]:
display(" |-- <" + str(s))
display(" `-- <" + str(signals[-1]))
def signals(self) :
"""
......
Markdown is supported
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