mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 21:33:13 -07:00
Use format()
instead of %
for string formatting
This commit is contained in:
parent
94e8a45c62
commit
1cd073cd52
21 changed files with 317 additions and 287 deletions
|
@ -193,9 +193,9 @@ class NTMRotatingLogHandler(object):
|
|||
self.writes_since_check += 1
|
||||
|
||||
try:
|
||||
message = u"%s: %s" % (str(section).upper(), toLog)
|
||||
message = u"{0}: {1}".format(str(section).upper(), toLog)
|
||||
except:
|
||||
message = u"%s: Message contains non-utf-8 string" % (str(section).upper())
|
||||
message = u"{0}: Message contains non-utf-8 string".format(str(section).upper())
|
||||
|
||||
out_line = message
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue