From cd1cd184196757df7adabcb29f0f73eb864121a7 Mon Sep 17 00:00:00 2001 From: djib Date: Wed, 27 Nov 2019 13:29:05 +0100 Subject: [PATCH] Refactor to PEP8 standard --- PDMameUpdate.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PDMameUpdate.py b/PDMameUpdate.py index 968ea0c..415a992 100755 --- a/PDMameUpdate.py +++ b/PDMameUpdate.py @@ -139,9 +139,9 @@ def check_and_rewrite_download_url(torrent_data): def prompt_for_update(): """Ask for user confirmation before updating""" - - outputHeader=["Torrent","from","to"] - output=[] + + output_header = ["Torrent", "from", "to"] + output = [] if len(torrents) > 0: for torrent, data in torrents.items(): output.append([ @@ -149,7 +149,7 @@ def prompt_for_update(): data['local-version'], data['remote-version'] ]) - print(tabulate(output,headers=outputHeader,tablefmt="simple")) + print(tabulate(output, headers=output_header, tablefmt="simple")) print('Should I update the torrents listed above? (y/N)') answer = input() if answer.lower() != 'y':