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
commit 2ad9f2e35f
18 changed files with 259 additions and 239 deletions

View file

@ -310,9 +310,9 @@ def main(args):
os.path.basename(dirName))
)
clientAgent = str(core.DOWNLOADINFO[0].get('client_agent', ''))
inputHash = str(core.DOWNLOADINFO[0].get('input_hash', ''))
inputID = str(core.DOWNLOADINFO[0].get('input_id', ''))
clientAgent = text_type(core.DOWNLOADINFO[0].get('client_agent', ''))
inputHash = text_type(core.DOWNLOADINFO[0].get('input_hash', ''))
inputID = text_type(core.DOWNLOADINFO[0].get('input_id', ''))
if clientAgent and clientAgent.lower() not in core.TORRENT_CLIENTS:
continue