def pymodule_version_info(key, value, pymodule):
    version = get_version(value)
    if version:
        result = dict(version_field=key, version=version)
        if hasattr(pymodule, '__file__'):
            result['path'] = pymodule.__file__
        return result
def pymodule_version_info(key, value, pymodule):
    version = get_version(value)
    if version:
        result = dict(version_field=key, version=version)
        if hasattr(pymodule, '__file__'):
            result['path'] = pymodule.__file__
        return result