Skip to content

Commit

Permalink
fix SyntaxWarning 'is not' when checking for equality
Browse files Browse the repository at this point in the history
Signed-off-by: Mikael Arguedas <[email protected]>
  • Loading branch information
mikaelarguedas committed Jan 2, 2025
1 parent 7fb264e commit 7eac9d2
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 7eac9d2

Please sign in to comment.