@@ -103,7 +103,6 @@ def errorHandler(self, msg):
103103 """can be overwriten"""
104104 return f"ERROR { sys .exc_info ()[1 ]} "
105105
106-
107106 ## stores a message processing function for specific first words
108107 # @param self
109108 # @param first_words list of first words for which the function is called
@@ -137,17 +136,20 @@ def _pdMsgListProcessor(self, msgList):
137136 self .isWaiting = False
138137 Log (
139138 "FCPD" ,
140- f"PDServer : Callback initialized to { self .remoteAddress .toString ()} :{ words [1 ]} \n "
139+ f"PDServer : Callback initialized to { self .remoteAddress .toString ()} :{ words [1 ]} \n " ,
141140 )
142141 if self .writeBuffer :
143- Wrn ("FCPD" , "PDServer : The data previously stored are now sent\n " )
142+ Wrn (
143+ "FCPD" ,
144+ "PDServer : The data previously stored are now sent\n " ,
145+ )
144146 self .outputSocket .write (bytes (self .writeBuffer , "utf8" ))
145147 Log ("FCPD" , f"PDServer : >>> { self .writeBuffer } \r \n " )
146148 self .writeBuffer = ""
147149 else :
148150 Log (
149151 "FCPD" ,
150- f"PDServer : ERROR during callback initialization\n { self .outputSocket .error ()} \n "
152+ f"PDServer : ERROR during callback initialization\n { self .outputSocket .error ()} \n " ,
151153 )
152154 elif words [0 ] == "close" :
153155 self .terminate ()
@@ -183,7 +185,7 @@ def send(self, *data):
183185 Wrn (
184186 "FCPD" ,
185187 "WARNING : Data are sent to PDServer but Pure-Data is not connected.\n "
186- "The data will be kept until connection.\n "
188+ "The data will be kept until connection.\n " ,
187189 )
188190
189191 ## launch the server
@@ -216,7 +218,7 @@ def newConnection(self):
216218 self .remoteAddress = self .inputSocket .peerAddress ()
217219 Log (
218220 "FCPD" ,
219- f"PDServer : Connection from { self .remoteAddress .toString ()} :{ self .inputSocket .peerPort ()} \r \n "
221+ f"PDServer : Connection from { self .remoteAddress .toString ()} :{ self .inputSocket .peerPort ()} \r \n " ,
220222 )
221223 Notif ("FCPD" , "The server is now connected." )
222224
@@ -239,7 +241,7 @@ def readyRead(self):
239241 def remoteClose (self ):
240242 Log (
241243 "FCPD" ,
242- f"PDServer : { self .inputSocket .peerAddress ().toString ()} close connection\r \n "
244+ f"PDServer : { self .inputSocket .peerAddress ().toString ()} close connection\r \n " ,
243245 )
244246 if self .isRunning :
245247 self .terminate ()
0 commit comments