Skip to content

Commit

Permalink
Fix string comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferry Schoenmakers committed Oct 11, 2024
1 parent 36ec57c commit 9e00470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smach/smach/state_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9e00470

Please sign in to comment.