#NEWLINE# def check_RT( self , RT ) : #NEWLINE# #INDENT# c = self . db . execute ( 'SELECT * FROM mailbox_server_transports WHERE RT=?' , ( RT . encode ( 'hex' ) , ) ) #NEWLINE# row = c . fetchone ( ) #NEWLINE# if row : #NEWLINE# #INDENT# return ( self [ 'id' ] , row [ 'symkey' ] . decode ( 'hex' ) ) #NEWLINE# #UNINDENT# raise KeyError ( 'no such RT' )