Skip to content

Commit deeeeab

Browse files
committed
modernize formatting
1 parent 7339962 commit deeeeab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmd2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2292,8 +2292,8 @@ def _test_transcript(self, fname, transcript):
22922292
result = self.cmdapp.stdout.read()
22932293
# Read the expected result from transcript
22942294
if strip_ansi(line).startswith(self.cmdapp.visible_prompt):
2295-
message = '\nFile %s, line %d\nCommand was:\n%r\nExpected: (nothing)\nGot:\n%r\n' % \
2296-
(fname, line_num, command, result)
2295+
message = '\nFile {}, line {}\nCommand was:\n{}\nExpected: (nothing)\nGot:\n{}\n'.format(
2296+
fname, line_num, command, result)
22972297
self.assert_(not (result.strip()), message)
22982298
continue
22992299
expected = []

0 commit comments

Comments
 (0)