diff options
author | ptmcg <ptmcg@austin.rr.com> | 2019-01-09 17:18:22 -0600 |
---|---|---|
committer | ptmcg <ptmcg@austin.rr.com> | 2019-01-09 17:18:22 -0600 |
commit | d626c99b6288afc4708d72f668b45a29d3263d22 (patch) | |
tree | 4cbeca134437387022e59b71631246e178393aca /examples/statemachine/documentSignoffDemo.py | |
parent | e9ef507bf1fd41d4bd3ffb0c193e5889254ba340 (diff) | |
download | pyparsing-git-d626c99b6288afc4708d72f668b45a29d3263d22.tar.gz |
Add enumerated place holders for strings that invoke str.format(), for Py2 compatibility
Diffstat (limited to 'examples/statemachine/documentSignoffDemo.py')
-rw-r--r-- | examples/statemachine/documentSignoffDemo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/statemachine/documentSignoffDemo.py b/examples/statemachine/documentSignoffDemo.py index 89c6440..58aa208 100644 --- a/examples/statemachine/documentSignoffDemo.py +++ b/examples/statemachine/documentSignoffDemo.py @@ -26,7 +26,7 @@ class Document: return attr def __str__(self): - return "{}: {}".format(self.__class__.__name__, self._state) + return "{0}: {1}".format(self.__class__.__name__, self._state) def run_demo(): |