def get_version(filename='<STR_LIT>'):
version = '<STR_LIT>' <EOL>with open(filename, '<STR_LIT:r>') as fp:<EOL><INDENT>for line in fp:<EOL><INDENT>m = re.search('<STR_LIT>''<STR_LIT>''<STR_LIT>', line)<EOL>if m is not None:<EOL><INDENT>version = (m.group(<NUM_LIT:1>)).strip('<STR_LIT>')<EOL>break<EOL><DEDENT><DEDENT><DEDENT>return version<EOL>
Extract version information from source code