#NEWLINE# def get_columns( self , table ) : #NEWLINE# #INDENT# 'Return all columns.\n\n        Mandatory positional arguments:\n        cursor -- the cursor\n        table -- name of the table\n\n        ' #NEWLINE# self . cursor . execute ( ( 'select * from %s where 1=0' % table ) ) #NEWLINE# return [ rec [ 0 ] for rec in self . cursor . description ]