#NEWLINE# def _set_reply_timeout( self , reply , timeout_ms ) : #NEWLINE# #INDENT# request_id = self . _get_request_id ( reply . request ( ) ) #NEWLINE# timer = QTimer ( reply ) #NEWLINE# timer . setSingleShot ( True ) #NEWLINE# timer_callback = functools . partial ( self . _on_reply_timeout , reply = reply , timer = timer , request_id = request_id ) #NEWLINE# timer . timeout . connect ( self ) #NEWLINE# self . _reply_timeout_timers [ request_id ] = timer #NEWLINE# timer . start ( timeout_ms )