@@ -623,7 +623,7 @@ def get_socket(self):
623
623
resp = self ._send_command_get_response (_GET_SOCKET_CMD )
624
624
resp = resp [0 ][0 ]
625
625
if resp == 255 :
626
- raise OSError (23 ) # ENFILE - File table overflow
626
+ raise OSError (23 ) # ENFILE - File table overflow
627
627
if self ._debug :
628
628
print ("Allocated socket #%d" % resp )
629
629
return resp
@@ -637,7 +637,7 @@ def socket_open(self, socket_num, dest, port, conn_mode=TCP_MODE):
637
637
if self ._debug :
638
638
print ("*** Open socket to" , dest , port , conn_mode )
639
639
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
641
641
port_param = struct .pack (">H" , port )
642
642
if isinstance (dest , str ): # use the 5 arg version
643
643
dest = bytes (dest , "utf-8" )
@@ -772,7 +772,9 @@ def socket_close(self, socket_num):
772
772
print ("*** Closing socket #%d" % socket_num )
773
773
self ._socknum_ll [0 ][0 ] = socket_num
774
774
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
+ )
776
778
except RuntimeError :
777
779
pass
778
780
if socket_num == self ._tls_socket :
0 commit comments