summaryrefslogtreecommitdiff
path: root/examples/sparser.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sparser.py')
-rw-r--r--examples/sparser.py4
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():