#NEWLINE# def get_info_text( self , attribute , default = None , text_factory = None ) : #NEWLINE# #INDENT# c = self . cursor ( ) #NEWLINE# if ( text_factory is not None ) : #NEWLINE# #INDENT# old_text_factory = self . _conn . text_factory #NEWLINE# self . _conn . text_factory = c #NEWLINE# #UNINDENT# q = 'SELECT text FROM info WHERE attribute = ?' #NEWLINE# row = c . execute ( q , ( attribute , ) ) . fetchone ( ) #NEWLINE# if ( text_factory is not None ) : #NEWLINE# #INDENT# self . _conn . text_factory = old_text_factory #NEWLINE# #UNINDENT# if row : #NEWLINE# #INDENT# return row [ 0 ] #NEWLINE# #UNINDENT# return default