src/eric7/RemoteServer/EricServer.py

branch
eric7
changeset 11148
15e30f0c76a8
parent 11090
f5f5f5803935
--- a/src/eric7/RemoteServer/EricServer.py	Mon Feb 24 15:11:18 2025 +0100
+++ b/src/eric7/RemoteServer/EricServer.py	Mon Feb 24 15:43:49 2025 +0100
@@ -196,7 +196,7 @@
             except UnicodeDecodeError:
                 msgClientId = str(bytes(msgClientIdBytes))
             if msgClientId != self.__clientId:
-                print(f"Received illegal client ID '{msgClientId}'.")  # noqa: M801
+                print(f"Received illegal client ID '{msgClientId}'.")  # noqa: M-801
                 return {}
 
         header = self.__receiveBytes(struct.calcsize(b"!II"), sock)
@@ -223,7 +223,7 @@
             return {}
 
         jsonStr = data.decode("utf8", "backslashreplace")
-        # - print("Eric Server Receive:", jsonStr)  # for debugging  # noqa: M801
+        # - print("Eric Server Receive:", jsonStr)  # for debugging  # noqa: M-801
         try:
             return json.loads(jsonStr.strip())
         except (TypeError, ValueError) as err:
@@ -302,7 +302,7 @@
         self.__socket.listen(0)
         self.__socket.setblocking(False)
         address = self.__socket.getsockname()
-        print(  # noqa: M801
+        print(  # noqa: M-801
             f"Listening for 'eric-ide' connections on {address[0]}, port {address[1]}"
         )
         data = types.SimpleNamespace(
@@ -326,7 +326,7 @@
         """
         self.__closeIdeConnection(shutdown=True)
 
-        print("Stop listening for 'eric-ide' connections.")  # noqa: M801
+        print("Stop listening for 'eric-ide' connections.")  # noqa: M-801
         if self.__socket is not None:
             self.__socket.shutdown(socket.SHUT_RDWR)
             self.__socket.close()
@@ -343,7 +343,7 @@
         connection, address = sock.accept()  # Should be ready to read.
         if self.__connection is None:
             print(f"'eric-ide' connection from {address[0]}, port {address[1]}")
-            # noqa: M801
+            # noqa: M-801
             self.__connection = connection
             self.__connection.settimeout(10)
             data = types.SimpleNamespace(
@@ -354,7 +354,7 @@
 
             self.__unregisterIdeSocket()
         else:
-            print(  # noqa: M801
+            print(  # noqa: M-801
                 f"'eric-ide' connection from {address[0]}, port {address[1]} rejected"
             )
             connection.close()
@@ -370,13 +370,13 @@
             self.__selector.unregister(self.__connection)
             try:
                 address = self.__connection.getpeername()
-                print(  # noqa: M801
+                print(  # noqa: M-801
                     f"Closing 'eric-ide' connection to {address[0]}, port {address[1]}."
                 )
                 self.__connection.shutdown(socket.SHUT_RDWR)
                 self.__connection.close()
             except OSError:
-                print("'eric-ide' connection gone.")  # noqa: M801
+                print("'eric-ide' connection gone.")  # noqa: M-801
             self.__connection = None
 
             self.__debuggerRequestHandler.shutdownClients()
@@ -448,8 +448,8 @@
                 tbinfofile.seek(0)
                 tbinfo = tbinfofile.read()
 
-                print("Stopping due to an exception.\nDetails:")  # noqa: M801
-                print(f"{str(exctype)} / {str(excval)} / {tbinfo}")  # noqa: M801
+                print("Stopping due to an exception.\nDetails:")  # noqa: M-801
+                print(f"{str(exctype)} / {str(excval)} / {tbinfo}")  # noqa: M-801
 
                 self.__shouldStop = True
                 cleanExit = False
@@ -539,7 +539,7 @@
                 params={"Category": category},
             )
 
-    def __handleEchoRequest(self, request, params, reqestUuid):  # noqa: U100
+    def __handleEchoRequest(self, request, params, reqestUuid):  # noqa: U-100
         """
         Private method to handle an 'Echo' request.
 
@@ -558,7 +558,7 @@
             reqestUuid=reqestUuid,
         )
 
-    def __handleServerRequest(self, request, params, reqestUuid):  # noqa: U100
+    def __handleServerRequest(self, request, params, reqestUuid):  # noqa: U-100
         """
         Private method to handle a 'Server' request.
 

eric ide

mercurial