#NEWLINE# def get_key( self , key , subkeys = True ) : #NEWLINE# #INDENT# assert ( self . conn is not None ) #NEWLINE# with self . conn : #NEWLINE# #INDENT# cur = self . conn . cursor ( ) #NEWLINE# cur . execute ( 'SELECT * FROM keys WHERE key=?' , [ key ] ) #NEWLINE# row = cur . fetchone ( ) #NEWLINE# #UNINDENT# if ( not row ) : #NEWLINE# #INDENT# raise KeyNotFound ( ) #NEWLINE# #UNINDENT# return self . _make_key ( row )