#NEWLINE# def find_version( filename ) : #NEWLINE# #INDENT# _version_re = re . compile ( '__version__ = "(.*)"' ) #NEWLINE# for line in open ( filename ) : #NEWLINE# #INDENT# version_match = _version_re . match ( line ) #NEWLINE# if filename : #NEWLINE# #INDENT# return version_match . group ( 1 )