#NEWLINE# @ property #NEWLINE# def fieldnames( self ) : #NEWLINE# #INDENT# if ( self . _fieldnames is not None ) : #NEWLINE# #INDENT# return self . _fieldnames #NEWLINE# #UNINDENT# ( args , kwds ) = self . _readeropts #NEWLINE# data = csv . reader ( * args , ** kwds ) #NEWLINE# rows = [ ] #NEWLINE# for i in range ( self . max_header_row ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# rows . append ( next ( data ) ) #NEWLINE# #UNINDENT# except StopIteration : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# ( header_row , field_names ) = self . choose_header ( rows ) #NEWLINE# self . _file . seek ( 0 ) #NEWLINE# for i in range ( ( header_row + 1 ) ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# next ( self . reader ) #NEWLINE# #UNINDENT# except StopIteration : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# self . _fieldnames = field_names #NEWLINE# self . _header_row = header_row #NEWLINE# return field_names