hdl.ast: fix non-existing variable in SignalKey.__lt__

This commit is contained in:
Alan Vekselman 2022-10-05 16:49:37 -03:00 committed by Catherine
parent 3a51b61284
commit 9857039a6b

View file

@ -1798,7 +1798,7 @@ class SignalKey:
def __lt__(self, other): def __lt__(self, other):
if type(other) is not SignalKey: if type(other) is not SignalKey:
raise TypeError("Object {!r} cannot be compared to a SignalKey".format(signal)) raise TypeError("Object {!r} cannot be compared to a SignalKey".format(other))
return self._intern < other._intern return self._intern < other._intern
def __repr__(self): def __repr__(self):