From 9e00470ed22944c8ee4fe3067db79cbc78249503 Mon Sep 17 00:00:00 2001 From: Ferry Schoenmakers Date: Fri, 11 Oct 2024 11:18:36 +0200 Subject: [PATCH] Fix string comparison --- smach/smach/state_machine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smach/smach/state_machine.py b/smach/smach/state_machine.py index 8c27a0f..75d091f 100644 --- a/smach/smach/state_machine.py +++ b/smach/smach/state_machine.py @@ -74,7 +74,7 @@ def __init__(self, outcomes, input_keys=[], output_keys=[]): ### Getter and Setter to allow pickling and unpickling state machines def __getstate__(self): - return {k:v for (k, v) in self.__dict__.items() if k is not "_state_transitioning_lock"} + return {k:v for (k, v) in self.__dict__.items() if k != "_state_transitioning_lock"} def __setstate__(self, d): self.__dict__ = d