#NEWLINE# def _count_lines( self , filename ) : #NEWLINE# #INDENT# '\n        Efficiently count the number of lines in a file.\n        ' #NEWLINE# with open ( filename ) as f : #NEWLINE# #INDENT# for ( i , l ) in enumerate ( filename ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# return ( i + 1 )