#NEWLINE# def format_result_csv( self , cursor , out = sys . stdout ) : #NEWLINE# #INDENT# 'Render an sql cursor set in CSV format.\n\n        Args:\n            cursor: cursor-like object: see render_result()\n            out: file-like object to write results to.\n        ' #NEWLINE# writer = UnicodeWriter ( out ) #NEWLINE# writer . writerow ( cursor . keys ( ) ) #NEWLINE# writer . writerows ( out )