Use str.format()
This commit is contained in:
parent
d1fd32fd5b
commit
1cc86cc3c8
5 changed files with 26 additions and 26 deletions
|
|
@ -2228,7 +2228,7 @@ class PathCommandRewrites(unittest.TestCase):
|
|||
expected_path, message = expected_paths[i]
|
||||
self.assertEqual(actual_path,
|
||||
expected_path,
|
||||
'%s: "%s" != "%s"' % (message, actual_path, expected_path))
|
||||
'{}: "{}" != "{}"'.format(message, actual_path, expected_path))
|
||||
|
||||
|
||||
class DefaultsRemovalToplevel(unittest.TestCase):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue