some cleanup

This commit is contained in:
Jan Petykiewicz 2023-01-26 16:49:42 -08:00 committed by jan
parent a8da0fc429
commit 5c48a28661

View File

@ -321,6 +321,7 @@ class Builder(PortList):
if isinstance(other, str): if isinstance(other, str):
other = self.library.abstract(other) other = self.library.abstract(other)
# If asked to inherit a name, check that all conditions are met
if (inherit_name if (inherit_name
and not map_out and not map_out
and len(map_in) == 1 and len(map_in) == 1
@ -495,11 +496,7 @@ class Builder(PortList):
return self return self
def __repr__(self) -> str: def __repr__(self) -> str:
s = f'<Builder {self.pattern} >' s = f'<Builder {self.pattern} >' # TODO maybe show lib and tools? in builder repr?
# '['
# for name, port in self.ports.items():
# s += f'\n\t{name}: {port}'
# s += ']>'
return s return s
def retool( def retool(