diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index 2ecd8e40..f454023c 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -1221,7 +1221,7 @@ class MyForm(settingsmixin.SMainWindow): # create application indicator def appIndicatorInit(self, app): self.initTrayIcon("can-icon-24px-red.png", app) - self.tray.activated.connect(self.__icon_activated); + self.tray.activated.connect(self.__icon_activated) m = QtWidgets.QMenu() diff --git a/src/network/objectracker.py b/src/network/objectracker.py index 63425def..0c3c752b 100644 --- a/src/network/objectracker.py +++ b/src/network/objectracker.py @@ -102,7 +102,7 @@ class ObjectTracker(object): def handleReceivedObject(self, streamNumber, hashid): """Handling received object""" - hashid_bytes = bytes(hashid); + hashid_bytes = bytes(hashid) for i in connectionpool.pool.connections(): if not i.fullyEstablished: continue diff --git a/src/tr.py b/src/tr.py index 06e2e5d8..61969523 100644 --- a/src/tr.py +++ b/src/tr.py @@ -41,7 +41,7 @@ def translateText(context, text, n=None): enableGUI = True if enableGUI: try: - from PyQt6 import QtCore, QtGui, QtWidgets + from PyQt6 import 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.'