From 16d9b85e62823affcf071fb2eb93ddc37ece345a Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Tue, 10 Aug 2021 11:37:01 -0700 Subject: [PATCH] Various lint appeasements. --- voussoirkit/downloady.py | 1 - voussoirkit/interactive.py | 3 ++- voussoirkit/quickid.py | 1 - voussoirkit/spinal.py | 2 +- voussoirkit/threadpool.py | 1 - 5 files changed, 3 insertions(+), 5 deletions(-) diff --git a/voussoirkit/downloady.py b/voussoirkit/downloady.py index 3a39130..58aed36 100644 --- a/voussoirkit/downloady.py +++ b/voussoirkit/downloady.py @@ -10,7 +10,6 @@ from voussoirkit import clipext from voussoirkit import dotdict from voussoirkit import pathclass from voussoirkit import ratelimiter -from voussoirkit import safeprint from voussoirkit import vlogging log = vlogging.getLogger(__name__, 'downloady') diff --git a/voussoirkit/interactive.py b/voussoirkit/interactive.py index 75c9fdb..3f368e4 100644 --- a/voussoirkit/interactive.py +++ b/voussoirkit/interactive.py @@ -12,7 +12,8 @@ def _abc_make_option_letters(options): option_letters = {} letter_length = math.ceil(len(options) / 26) for (index, option) in enumerate(options): - letter = basenumber.to_base(index, 26, alphabet=string.ascii_lowercase).rjust(letter_length, 'a') + letter = basenumber.to_base(index, 26, alphabet=string.ascii_lowercase) + letter = letter.rjust(letter_length, 'a') option_letters[letter] = option return option_letters diff --git a/voussoirkit/quickid.py b/voussoirkit/quickid.py index 1cf2e74..7ce2902 100644 --- a/voussoirkit/quickid.py +++ b/voussoirkit/quickid.py @@ -3,7 +3,6 @@ This module is designed to provide a GOOD ENOUGH means of identifying duplicate files very quickly, so that more in-depth checks can be done on likely matches. ''' import hashlib -import os import sys from voussoirkit import pathclass diff --git a/voussoirkit/spinal.py b/voussoirkit/spinal.py index f9c4b40..d428909 100644 --- a/voussoirkit/spinal.py +++ b/voussoirkit/spinal.py @@ -3,7 +3,6 @@ This module provides functions related to walking the filesystem and copying files and folders. ''' import hashlib -import logging import os import shutil import sys @@ -342,6 +341,7 @@ def copy_file( *, destination_new_root=None, bytes_per_second=None, + callback_hash_progress=None, callback_progress=None, callback_permission_denied=None, callback_pre_copy=None, diff --git a/voussoirkit/threadpool.py b/voussoirkit/threadpool.py index 3cafa44..2769ca5 100644 --- a/voussoirkit/threadpool.py +++ b/voussoirkit/threadpool.py @@ -29,7 +29,6 @@ of threadpool in use: >>> pool.add_many(kwargss) >>> pool.join() ''' -import collections import logging import queue import threading