@@ -623,7 +623,7 @@ def get_socket(self):
623623 resp = self ._send_command_get_response (_GET_SOCKET_CMD )
624624 resp = resp [0 ][0 ]
625625 if resp == 255 :
626- raise OSError (23 ) # ENFILE - File table overflow
626+ raise OSError (23 ) # ENFILE - File table overflow
627627 if self ._debug :
628628 print ("Allocated socket #%d" % resp )
629629 return resp
@@ -637,7 +637,7 @@ def socket_open(self, socket_num, dest, port, conn_mode=TCP_MODE):
637637 if self ._debug :
638638 print ("*** Open socket to" , dest , port , conn_mode )
639639 if conn_mode == TLS_MODE and self ._tls_socket is not None :
640- raise OSError (23 ) # ENFILE - File table overflow
640+ raise OSError (23 ) # ENFILE - File table overflow
641641 port_param = struct .pack (">H" , port )
642642 if isinstance (dest , str ): # use the 5 arg version
643643 dest = bytes (dest , "utf-8" )
@@ -772,7 +772,9 @@ def socket_close(self, socket_num):
772772 print ("*** Closing socket #%d" % socket_num )
773773 self ._socknum_ll [0 ][0 ] = socket_num
774774 try :
775- resp = self ._send_command_get_response (_STOP_CLIENT_TCP_CMD , self ._socknum_ll )
775+ resp = self ._send_command_get_response (
776+ _STOP_CLIENT_TCP_CMD , self ._socknum_ll
777+ )
776778 except RuntimeError :
777779 pass
778780 if socket_num == self ._tls_socket :
0 commit comments