def find_version(filename):
with io.open(filename, encoding="<STR_LIT:utf-8>") as version_file:<EOL><INDENT>version_match = re.search(r'<STR_LIT>',<EOL>version_file.read(), re.M)<EOL><DEDENT>if version_match:<EOL><INDENT>return version_match.group(<NUM_LIT:1>)<EOL><DEDENT>return "<STR_LIT>"<EOL>
Uses re to pull out the assigned value to __version__ in filename.