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
|
|
@ -70,7 +70,7 @@ class Message:
|
|||
|
||||
with open(self.global_messages, 'a') as fd:
|
||||
for line in content:
|
||||
fd.write("%s:%s" % (self.prefix, line))
|
||||
fd.write("{}:{}".format(self.prefix, line))
|
||||
|
||||
def merge_messages(self):
|
||||
self._merge_messages()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue