Various lint appeasements.

This commit is contained in:
voussoir 2021-08-10 11:37:01 -07:00
parent 63251b979b
commit 16d9b85e62
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB
5 changed files with 3 additions and 5 deletions

View file

@ -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')

View file

@ -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

View file

@ -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

View file

@ -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,

View file

@ -29,7 +29,6 @@ of threadpool in use:
>>> pool.add_many(kwargss)
>>> pool.join()
'''
import collections
import logging
import queue
import threading