From b7fffcc0c84c64fd54d4841d92e77b65cdbce34e Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Mon, 3 Aug 2020 23:47:40 -0700 Subject: [PATCH] Various lint appeasements. --- ampcode.py | 2 -- autocat.py | 1 - bitrate_chart.py | 3 --- crlf.py | 1 - fileprefix.py | 2 -- gitcheckup.py | 1 - hexpng.py | 2 -- internetcheck.py | 2 -- lowercase.py | 2 -- randomfile.py | 1 - size.py | 1 - unique.py | 1 - 12 files changed, 19 deletions(-) diff --git a/ampcode.py b/ampcode.py index 2561072..8937f69 100644 --- a/ampcode.py +++ b/ampcode.py @@ -1,5 +1,3 @@ -import sys - from voussoirkit import pipeable for line in pipeable.go(): diff --git a/autocat.py b/autocat.py index 92782a9..d90bc71 100644 --- a/autocat.py +++ b/autocat.py @@ -2,7 +2,6 @@ import glob import os import sys import tempfile -import time if len(sys.argv) < 3: raise ValueError() diff --git a/bitrate_chart.py b/bitrate_chart.py index 72581b3..c36f52d 100644 --- a/bitrate_chart.py +++ b/bitrate_chart.py @@ -18,11 +18,8 @@ 12288 kbps | 1.500 MiB | 90.000 MiB | 2.637 GiB | 5.273 GiB | 7.910 GiB | 10.547 GiB 16384 kbps | 2.000 MiB | 120.000 MiB | 3.516 GiB | 7.031 GiB | 10.547 GiB | 14.062 GiB ''' -import sys import kbps -from voussoirkit import bytestring - times = ['01', '1:00', '30:00', '1:00:00', '1:30:00', '2:00:00'] rates = [128, 256, 320, 500, 640, 738, 1024, 2048, 3072, 4096, 6144, 8192, 12288, 16384, 2330.17, 4660.34] diff --git a/crlf.py b/crlf.py index 3eb31ca..f1a4342 100644 --- a/crlf.py +++ b/crlf.py @@ -26,4 +26,3 @@ def main(args): if __name__ == '__main__': raise SystemExit(main(sys.argv[1:])) - diff --git a/fileprefix.py b/fileprefix.py index dc8198c..461b871 100644 --- a/fileprefix.py +++ b/fileprefix.py @@ -7,8 +7,6 @@ integer that counts each file in the folder. import argparse import os -import random -import string import re import sys diff --git a/gitcheckup.py b/gitcheckup.py index d2ea5ec..34cefb8 100644 --- a/gitcheckup.py +++ b/gitcheckup.py @@ -2,7 +2,6 @@ import argparse import os import subprocess import sys -import types from voussoirkit import dotdict from voussoirkit import winwhich diff --git a/hexpng.py b/hexpng.py index 98afa28..7c8a71d 100644 --- a/hexpng.py +++ b/hexpng.py @@ -1,9 +1,7 @@ ''' Generate a png file of a solid color, specified by a hex code. ''' - import argparse -import os import PIL.Image import sys diff --git a/internetcheck.py b/internetcheck.py index 50aa76b..49ba344 100644 --- a/internetcheck.py +++ b/internetcheck.py @@ -1,7 +1,5 @@ -import os import socket import sqlite3 -import subprocess import sys import time diff --git a/lowercase.py b/lowercase.py index 032c7ac..ad48dc0 100644 --- a/lowercase.py +++ b/lowercase.py @@ -1,5 +1,3 @@ -import sys - from voussoirkit import pipeable diff --git a/randomfile.py b/randomfile.py index c9f473b..37d3529 100644 --- a/randomfile.py +++ b/randomfile.py @@ -10,7 +10,6 @@ def listget(li, index, fallback=None): return fallback def rid(length=8): - import random bits = length * 4 bits = random.getrandbits(bits) identifier = '{:02x}'.format(bits).rjust(length, '0') diff --git a/size.py b/size.py index 2bb5611..42891e6 100644 --- a/size.py +++ b/size.py @@ -1,6 +1,5 @@ import sys -from voussoirkit import bytestring from voussoirkit import spinal from voussoirkit import pathclass diff --git a/unique.py b/unique.py index 35e6982..d98f01c 100644 --- a/unique.py +++ b/unique.py @@ -17,4 +17,3 @@ for line in lines: #new_text.append(line) seen.add(line) print(line) -