From 658eca5eea66e0e16ba45090fa4894b6fba66bf3 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Thu, 26 Jan 2023 16:49:42 -0800 Subject: [PATCH] some cleanup --- masque/builder/builder.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/masque/builder/builder.py b/masque/builder/builder.py index 201c37e..41511fd 100644 --- a/masque/builder/builder.py +++ b/masque/builder/builder.py @@ -321,6 +321,7 @@ class Builder(PortList): if isinstance(other, str): other = self.library.abstract(other) + # If asked to inherit a name, check that all conditions are met if (inherit_name and not map_out and len(map_in) == 1 @@ -495,11 +496,7 @@ class Builder(PortList): return self def __repr__(self) -> str: - s = f'' - # '[' - # for name, port in self.ports.items(): - # s += f'\n\t{name}: {port}' - # s += ']>' + s = f'' # TODO maybe show lib and tools? in builder repr? return s def retool(