fix complains from flake8

This commit is contained in:
Kashiko Koibumi 2024-05-17 02:14:59 +09:00
parent 24b83aae2a
commit 60af4109ab
No known key found for this signature in database
GPG Key ID: 8F06E069E37C40C4
5 changed files with 1 additions and 5 deletions

View File

@ -2,7 +2,6 @@
Message encoding end decoding functions Message encoding end decoding functions
""" """
import string
import zlib import zlib
import messagetypes import messagetypes

View File

@ -11,7 +11,6 @@ import select
import socket import socket
import sys import sys
import time import time
import warnings
from errno import ( from errno import (
EADDRINUSE, EAGAIN, EALREADY, EBADF, ECONNABORTED, ECONNREFUSED, EADDRINUSE, EAGAIN, EALREADY, EBADF, ECONNABORTED, ECONNREFUSED,
ECONNRESET, EHOSTUNREACH, EINPROGRESS, EINTR, EINVAL, EISCONN, ENETUNREACH, ECONNRESET, EHOSTUNREACH, EINPROGRESS, EINTR, EINVAL, EISCONN, ENETUNREACH,

View File

@ -3,7 +3,6 @@ Track randomize ordered dict
""" """
from threading import RLock from threading import RLock
from time import time from time import time
from binascii import hexlify
try: try:
import helper_random import helper_random

View File

@ -1,7 +1,6 @@
""" """
Sqlite Inventory Sqlite Inventory
""" """
import sqlite3
import time import time
from threading import RLock from threading import RLock

View File

@ -42,7 +42,7 @@ def translateText(context, text, n=None):
enableGUI = True enableGUI = True
if enableGUI: if enableGUI:
try: try:
from PyQt6 import QtCore, QtGui, QtWidgets from PyQt6 import QtWidgets
except Exception as err: except Exception as err:
print('PyBitmessage requires PyQt unless you want to run it as a daemon' print('PyBitmessage requires PyQt unless you want to run it as a daemon'
' and interact with it using the API.' ' and interact with it using the API.'