diff options
author | Paul McGuire <ptmcg@austin.rr.com> | 2019-05-27 21:09:48 -0500 |
---|---|---|
committer | Paul McGuire <ptmcg@austin.rr.com> | 2019-05-27 21:09:48 -0500 |
commit | fa1482d7c39de6d5ff534eebff7e76de7acfef10 (patch) | |
tree | b1515860e4d818f33ce9929193aa8d4187b19beb /examples/statemachine | |
parent | de5633bc975aad61d28ade5f96bf4af854657a6a (diff) | |
download | pyparsing-git-fa1482d7c39de6d5ff534eebff7e76de7acfef10.tar.gz |
Typo - `isinstance` should be `issubclass`
Diffstat (limited to 'examples/statemachine')
-rw-r--r-- | examples/statemachine/statemachine.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/statemachine/statemachine.py b/examples/statemachine/statemachine.py index 398faa3..4f1f31c 100644 --- a/examples/statemachine/statemachine.py +++ b/examples/statemachine/statemachine.py @@ -90,7 +90,7 @@ def expand_state_definition(source, loc, tokens): " self._state = None", " def initialize_state(self, init_state):", - " if isinstance(init_state, {baseStateClass}):".format(baseStateClass=baseStateClass), + " if issubclass(init_state, {baseStateClass}):".format(baseStateClass=baseStateClass), " init_state = init_state()", " self._state = init_state", |