eliminate semicolons

This commit is contained in:
Kashiko Koibumi 2024-05-18 11:12:49 +09:00
parent 8c2701c53b
commit bc254a935e
No known key found for this signature in database
GPG Key ID: 8F06E069E37C40C4
3 changed files with 3 additions and 3 deletions

View File

@ -1221,7 +1221,7 @@ class MyForm(settingsmixin.SMainWindow):
# create application indicator # create application indicator
def appIndicatorInit(self, app): def appIndicatorInit(self, app):
self.initTrayIcon("can-icon-24px-red.png", 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() m = QtWidgets.QMenu()

View File

@ -102,7 +102,7 @@ class ObjectTracker(object):
def handleReceivedObject(self, streamNumber, hashid): def handleReceivedObject(self, streamNumber, hashid):
"""Handling received object""" """Handling received object"""
hashid_bytes = bytes(hashid); hashid_bytes = bytes(hashid)
for i in connectionpool.pool.connections(): for i in connectionpool.pool.connections():
if not i.fullyEstablished: if not i.fullyEstablished:
continue continue

View File

@ -41,7 +41,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.'