From d0e0b15e2cc1e2b5a42ccd8df9236f397c570340 Mon Sep 17 00:00:00 2001 From: Althea Denlinger Date: Thu, 3 Oct 2024 09:33:01 -0700 Subject: [PATCH] Fix `flake8` errors (two typos in var names) --- zstash/create.py | 1 - zstash/extract.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/zstash/create.py b/zstash/create.py index e8ca0c48..e8819278 100644 --- a/zstash/create.py +++ b/zstash/create.py @@ -24,7 +24,6 @@ def create(): cache: str - exclude: str cache, args = setup_create() # Check config fields diff --git a/zstash/extract.py b/zstash/extract.py index 42a06dfb..b9d8c25d 100644 --- a/zstash/extract.py +++ b/zstash/extract.py @@ -254,7 +254,7 @@ def extract_database( # This is because we may have different versions of the # same file across many tars. insert_idx: int - iter_inx: int + iter_idx: int insert_idx, iter_idx = 0, 1 for iter_idx in range(1, len(matches)): # If the filenames are unique, just increment insert_idx. @@ -350,7 +350,7 @@ def multiprocess_extract( workers_to_matches: List[List[FilesRow]] = [[] for _ in range(num_workers)] for db_row in matches: tar = db_row.tar - workers_idx: int + worker_idx: int for worker_idx in range(len(workers_to_tars)): if tar in workers_to_tars[worker_idx]: # This worker gets this db_row.