summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorJared Crapo <jared@kotfu.net>2017-08-22 11:12:14 -0600
committerJared Crapo <jared@kotfu.net>2017-08-22 11:12:14 -0600
commitdeeeeab563854bea6a616a6746ee47915f9fd641 (patch)
treead10d4d8084344df7ad966b5f7fb156251d9d2bc /cmd2.py
parent73399623f8c1929a080c6dfd1fb62af1bd6551b9 (diff)
downloadcmd2-git-deeeeab563854bea6a616a6746ee47915f9fd641.tar.gz
modernize formatting
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2.py b/cmd2.py
index f3066aea..384ab064 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -2292,8 +2292,8 @@ class Cmd2TestCase(unittest.TestCase):
result = self.cmdapp.stdout.read()
# Read the expected result from transcript
if strip_ansi(line).startswith(self.cmdapp.visible_prompt):
- message = '\nFile %s, line %d\nCommand was:\n%r\nExpected: (nothing)\nGot:\n%r\n' % \
- (fname, line_num, command, result)
+ message = '\nFile {}, line {}\nCommand was:\n{}\nExpected: (nothing)\nGot:\n{}\n'.format(
+ fname, line_num, command, result)
self.assert_(not (result.strip()), message)
continue
expected = []