From 08c10c0745fc7882f6047d5c85e542d90a6307e6 Mon Sep 17 00:00:00 2001 From: Lenny Truong Date: Wed, 15 May 2019 10:19:47 -0700 Subject: [PATCH] Use is instead of == for port equality --- fault/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fault/actions.py b/fault/actions.py index dae3467e..e23445f1 100644 --- a/fault/actions.py +++ b/fault/actions.py @@ -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})"