Unify string formatting
Use one way of string formatting: replace old `%` style with new `str.format`. Resolve #855.
This commit is contained in:
parent
f984a918b9
commit
4c2d273f07
17 changed files with 67 additions and 65 deletions
|
|
@ -67,7 +67,7 @@ class MessageTestCase(test.CdistTestCase):
|
|||
def test_message_merge_prefix(self):
|
||||
"""Ensure messages are merged and are prefixed"""
|
||||
|
||||
expectedcontent = "%s:%s" % (self.prefix, self.content)
|
||||
expectedcontent = "{}:{}".format(self.prefix, self.content)
|
||||
|
||||
out = self.message.env['__messages_out']
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue