diff --git a/src/helper_msgcoding.py b/src/helper_msgcoding.py index 401b0e20..9c2652d6 100644 --- a/src/helper_msgcoding.py +++ b/src/helper_msgcoding.py @@ -2,6 +2,7 @@ Message encoding end decoding functions """ +import string import zlib import messagetypes diff --git a/src/network/asyncore_pollchoose.py b/src/network/asyncore_pollchoose.py index 081efcf2..c8b9e364 100644 --- a/src/network/asyncore_pollchoose.py +++ b/src/network/asyncore_pollchoose.py @@ -11,6 +11,7 @@ import select import socket import sys import time +import warnings from errno import ( EADDRINUSE, EAGAIN, EALREADY, EBADF, ECONNABORTED, ECONNREFUSED, ECONNRESET, EHOSTUNREACH, EINPROGRESS, EINTR, EINVAL, EISCONN, ENETUNREACH, diff --git a/src/randomtrackingdict.py b/src/randomtrackingdict.py index 0944da2a..1435180a 100644 --- a/src/randomtrackingdict.py +++ b/src/randomtrackingdict.py @@ -3,6 +3,7 @@ Track randomize ordered dict """ from threading import RLock from time import time +from binascii import hexlify try: import helper_random diff --git a/src/storage/sqlite.py b/src/storage/sqlite.py index 4dae1ac3..38d9fd95 100644 --- a/src/storage/sqlite.py +++ b/src/storage/sqlite.py @@ -1,6 +1,7 @@ """ Sqlite Inventory """ +import sqlite3 import time from threading import RLock diff --git a/src/tr.py b/src/tr.py index a0cbf1a0..f26dcdff 100644 --- a/src/tr.py +++ b/src/tr.py @@ -42,7 +42,7 @@ def translateText(context, text, n=None): enableGUI = True if enableGUI: try: - from PyQt6 import QtWidgets + from PyQt6 import QtCore, QtGui, QtWidgets except Exception as err: print('PyBitmessage requires PyQt unless you want to run it as a daemon' ' and interact with it using the API.'