Skip to content

Commit

Permalink
Merge pull request #99 from leonardt/patch-eq
Browse files Browse the repository at this point in the history
Use is instead of == for port equality
  • Loading branch information
leonardt committed May 20, 2019
2 parents c637efe + 08c10c0 commit fd70199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fault/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def retarget(self, new_circuit, clock):
return cls(new_port)

def __eq__(self, other):
return self.port == other.port
return self.port is other.port

def __str__(self):
return f"Peek({self.port.debug_name})"
Expand Down

0 comments on commit fd70199

Please sign in to comment.