Refactor to PEP8 standard
This commit is contained in:
@ -139,9 +139,9 @@ def check_and_rewrite_download_url(torrent_data):
|
|||||||
|
|
||||||
def prompt_for_update():
|
def prompt_for_update():
|
||||||
"""Ask for user confirmation before updating"""
|
"""Ask for user confirmation before updating"""
|
||||||
|
|
||||||
outputHeader=["Torrent","from","to"]
|
output_header = ["Torrent", "from", "to"]
|
||||||
output=[]
|
output = []
|
||||||
if len(torrents) > 0:
|
if len(torrents) > 0:
|
||||||
for torrent, data in torrents.items():
|
for torrent, data in torrents.items():
|
||||||
output.append([
|
output.append([
|
||||||
@ -149,7 +149,7 @@ def prompt_for_update():
|
|||||||
data['local-version'],
|
data['local-version'],
|
||||||
data['remote-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)')
|
print('Should I update the torrents listed above? (y/N)')
|
||||||
answer = input()
|
answer = input()
|
||||||
if answer.lower() != 'y':
|
if answer.lower() != 'y':
|
||||||
|
Reference in New Issue
Block a user