diff options
author | Hugo <hugovk@users.noreply.github.com> | 2018-08-21 15:40:38 +0300 |
---|---|---|
committer | Hugo <hugovk@users.noreply.github.com> | 2018-08-21 15:40:38 +0300 |
commit | c3dba1ed5f9be226044c7ffaf1cd47adcc7482f4 (patch) | |
tree | 2c0c45c153434d0c6b78c0d5e51448933f959fb8 /examples/sparser.py | |
parent | 444859662f1829f2d8068fb33cdc375427bf9b6c (diff) | |
download | pyparsing-git-c3dba1ed5f9be226044c7ffaf1cd47adcc7482f4.tar.gz |
Upgrade Python syntax with pyupgrade
Diffstat (limited to 'examples/sparser.py')
-rw-r--r-- | examples/sparser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/sparser.py b/examples/sparser.py index 7c416da..c3c3da0 100644 --- a/examples/sparser.py +++ b/examples/sparser.py @@ -79,12 +79,12 @@ def msg(txt): def debug(ftn, txt):
"""Used for debugging."""
if debug_p:
- sys.stdout.write("%s.%s:%s\n" % (modname, ftn, txt))
+ sys.stdout.write("{}.{}:{}\n".format(modname, ftn, txt))
sys.stdout.flush()
def fatal(ftn, txt):
"""If can't continue."""
- msg = "%s.%s:FATAL:%s\n" % (modname, ftn, txt)
+ msg = "{}.{}:FATAL:{}\n".format(modname, ftn, txt)
raise SystemExit(msg)
def usage():
|