#NEWLINE# def get( self , name ) : #NEWLINE# #INDENT# if ( '%' in name ) : #NEWLINE# #INDENT# raise ValueError ( 'get() is for fetching single variables, no % wildcards' ) #NEWLINE# #UNINDENT# with self . get_cursor ( ) as cursor : #NEWLINE# #INDENT# num_rows = cursor . execute ( ( self . query + ' LIKE %s' ) , ( name , ) ) #NEWLINE# if ( num_rows == 0 ) : #NEWLINE# #INDENT# raise KeyError ( ( "No such status variable '%s'" % ( name , ) ) ) #NEWLINE# #UNINDENT# return self . _cast ( cursor . fetchone ( ) [ 1 ] )