Use str.format()

This commit is contained in:
Nikita Karamov 2023-01-23 06:47:09 +01:00
parent d1fd32fd5b
commit 1cc86cc3c8
No known key found for this signature in database
GPG key ID: 41D6F71EE78E77CD
5 changed files with 26 additions and 26 deletions

View file

@ -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):