@@ -1450,7 +1450,7 @@ def output_reader(proc):
14501450 if self .NODELAY :
14511451 self .COM .setsockopt (socket .IPPROTO_TCP , socket .TCP_NODELAY , 1 )
14521452
1453- self .COM .settimeout (1 ) # Intentionally low timeout
1453+ self .COM .settimeout (1 ) # Intentionally low timeout
14541454 try :
14551455 self .COM .connect ((self .IP , port ))
14561456 connected = self ._is_connected ()
@@ -1920,7 +1920,7 @@ def AddFile(self, filename: str, parent: 'Item' = 0) -> 'Item':
19201920 self ._send_line (command )
19211921 self ._send_line (filename )
19221922 self ._send_item (parent )
1923- self .COM .settimeout (max (60 ,self .TIMEOUT )) # 60 seconds timeout to add a file
1923+ self .COM .settimeout (max (60 , self .TIMEOUT )) # 60 seconds timeout to add a file
19241924 newitem = self ._rec_item ()
19251925 self .COM .settimeout (self .TIMEOUT )
19261926 self ._check_status ()
@@ -2172,7 +2172,7 @@ def ProjectPoints(self, points: Union[List[float], robomath.Mat], object_project
21722172 self ._send_matrix (points )
21732173 self ._send_item (object_project )
21742174 self ._send_int (projection_type )
2175- self .COM .settimeout (max (timeout , self .TIMEOUT ))
2175+ self .COM .settimeout (max (timeout , self .TIMEOUT ))
21762176 projected_points = self ._rec_matrix () # will wait here
21772177 self .COM .settimeout (self .TIMEOUT )
21782178 self ._check_status ()
@@ -3017,7 +3017,7 @@ def Command(self, cmd: str, value: Union[str, Dict, robomath.Mat, 'Item'] = '',
30173017 self ._send_line (command )
30183018 self ._send_line (str (cmd ))
30193019 self ._send_line (value )
3020- self .COM .settimeout (max (3600 ,self .TIMEOUT ))
3020+ self .COM .settimeout (max (3600 , self .TIMEOUT ))
30213021 line = self ._rec_line ()
30223022 self .COM .settimeout (self .TIMEOUT )
30233023 self ._check_status ()
@@ -6464,7 +6464,7 @@ def WaitMove(self, timeout: float = 360000):
64646464 self .link ._send_line (command )
64656465 self .link ._send_item (self )
64666466 self .link ._check_status ()
6467- self .link .COM .settimeout (max (timeout ,self .TIMEOUT ))
6467+ self .link .COM .settimeout (max (timeout , self .TIMEOUT ))
64686468 self .link ._check_status () #will wait here
64696469 self .link .COM .settimeout (self .link .TIMEOUT )
64706470 #busy = self.link.Is_Busy(self.item)
0 commit comments