

def get_version():
    '\n    Returns the version from the generated version file without actually\n    loading it (and thus trying to load the extension module).\n    '
    if (not os.path.exists(VERSION_FILE)):
        raise VersionNotFound((VERSION_FILE + ' does not exist'))
    fp = open(VERSION_FILE, 'r')
    vline = None
    for x in fp.readlines():
        x = x.rstrip()
        if (not x):
            continue
        if (not x.startswith('__version__')):
            continue
        vline = x.split('=')[1]
        break
    if (not vline):
        raise VersionNotFound('version file present but has no contents')
    return x.strip().rstrip().replace("'", '')

dataset/ETHPy150Open couchbase/couchbase-python-client/couchbase_version.py get_version/VarMisuse@127/217 `vline`->`x`