Skip to content
Snippets Groups Projects
Commit ce83ac7b authored by Francois Keith's avatar Francois Keith
Browse files

Handle the unlikely case where an entity has no signal.

parent ec70c041
No related branches found
No related tags found
No related merge requests found
...@@ -112,10 +112,13 @@ class Entity (object) : ...@@ -112,10 +112,13 @@ class Entity (object) :
Print the list of signals into standard output: temporary. Print the list of signals into standard output: temporary.
""" """
signals = self.signals() signals = self.signals()
display ("--- <" + self.name + "> signal list: ") if len(signals) == 0:
for s in signals[:-1]: display ("--- <" + self.name + "> has no signal")
display(" |-- <" + str(s)) else:
display(" `-- <" + str(signals[-1])) display ("--- <" + self.name + "> signal list: ")
for s in signals[:-1]:
display(" |-- <" + str(s))
display(" `-- <" + str(signals[-1]))
def signals(self) : def signals(self) :
""" """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment