Standardize string formatting to use .format instead of concat

This commit is contained in:
labrys 2016-06-06 05:45:42 -04:00 committed by Labrys
parent a3a59af3f8
commit 2ad9f2e35f
18 changed files with 259 additions and 239 deletions

View file

@ -80,8 +80,8 @@ def external_script(outputDestination, torrentName, torrentLabel, settings):
continue
cmd = ""
for item in command:
cmd = cmd + " " + item
logger.info("Running script {0} on file {1}.".format(cmd, filePath), "USERSCRIPT")
cmd = "{cmd} {item}".format(cmd=cmd, item=item)
logger.info("Running script {cmd} on file {path}.".format(cmd=cmd, path=filePath), "USERSCRIPT")
try:
p = Popen(command)
res = p.wait()