From 420a50672067b1a736a30c2f671fcf43495c4df0 Mon Sep 17 00:00:00 2001 From: Cody Logan Date: Wed, 1 Nov 2023 13:33:39 -0700 Subject: Rename some symbols and functions to better match their purpose --- src/wikiget/dl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wikiget/dl.py') diff --git a/src/wikiget/dl.py b/src/wikiget/dl.py index f39c355..a29e049 100644 --- a/src/wikiget/dl.py +++ b/src/wikiget/dl.py @@ -85,7 +85,7 @@ def batch_download(args: Namespace) -> int: # parse batch file try: - dl_list = read_batch_file(args.FILE) + dl_dict = read_batch_file(args.FILE) except OSError as e: logger.error(f"File could not be read: {e}") sys.exit(1) @@ -93,7 +93,7 @@ def batch_download(args: Namespace) -> int: # TODO: validate file contents before download process starts with ThreadPoolExecutor(max_workers=args.threads) as executor: futures = [] - for line_num, line in dl_list.items(): + for line_num, line in dl_dict.items(): # keep track of batch file line numbers for debugging/logging purposes logger.info(f"Processing '{line}' at line {line_num}") try: -- cgit v1.2.3