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 Feb 19, 2023
1 parent d4226ba commit 12c8ed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smach/src/smach/state_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,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 12c8ed1

Please sign in to comment.