Skip to content

Commit

Permalink
Merge pull request #97 from mikaelarguedas/state_machine_syntax_warning
Browse files Browse the repository at this point in the history
fix SyntaxWarning 'is not' when checking for equality
  • Loading branch information
130s authored Sep 23, 2024
2 parents 7153326 + 12c8ed1 commit 295921b
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 295921b

Please sign in to comment.