def versions_from_file(filename):
versions = {}<EOL>try:<EOL><INDENT>with open(filename) as f:<EOL><INDENT>for line in f.readlines():<EOL><INDENT>mo = re.match("<STR_LIT>", line)<EOL>if mo:<EOL><INDENT>versions["<STR_LIT:version>"] = mo.group(<NUM_LIT:1>)<EOL><DEDENT>mo = re.match("<STR_LIT>", line)<EOL>if mo:<EOL><INDENT>versions["<STR_LIT>"] = mo.group(<NUM_LIT:1>)<EOL><DEDENT><DEDENT><DEDENT><DEDENT>except EnvironmentError:<EOL><INDENT>return {}<EOL><DEDENT>return versions<EOL>
Return a dictionary of values derived from _version.py . This is the
    second attempt to find information by get_versions().