@@ -966,6 +966,7 @@ def mysummary(self) -> str:
966966 uid = self .sop_class_uid .decode ("ascii" ).rstrip ("\x00 " )
967967 return "SOPClassCommonExtNeg %s" % uid
968968
969+
969970USER_IDENTITY_TYPES = {
970971 1 : "Username" ,
971972 2 : "Username and Passcode" ,
@@ -1384,14 +1385,14 @@ def recv(self) -> Optional[Packet]:
13841385 return None
13851386
13861387 def sr1 (self , * args , ** kargs ):
1387- # type: (*Any, **Any) -> Optional[Packet]
1388- """Send one packet and receive one answer."""
1389- timeout = kargs .pop ("timeout" , self .read_timeout )
1390- try :
1391- return self .stream .sr1 (* args , timeout = timeout , ** kargs )
1392- except (socket .error , OSError ) as e :
1393- log .error ("Error in sr1: %s" , e )
1394- return None
1388+ # type: (*Any, **Any) -> Optional[Packet]
1389+ """Send one packet and receive one answer."""
1390+ timeout = kargs .pop ("timeout" , self .read_timeout )
1391+ try :
1392+ return self .stream .sr1 (* args , timeout = timeout , ** kargs )
1393+ except (socket .error , OSError ) as e :
1394+ log .error ("Error in sr1: %s" , e )
1395+ return None
13951396
13961397 def send_raw_bytes (self , raw_bytes : bytes ) -> None :
13971398 self .sock .sendall (raw_bytes )
0 commit comments