

@register_vcs_handler('git', 'get_keywords')
def git_get_keywords(versionfile_abs):
    keywords = {
        
    }
    try:
        f = open(versionfile_abs, 'r')
        for line in f.readlines():
            if line.strip().startswith('git_refnames ='):
                mo = re.search('=\\s*"(.*)"', line)
                if mo:
                    keywords['refnames'] = mo.group(1)
            if line.strip().startswith('git_full ='):
                mo = re.search('=\\s*"(.*)"', line)
                if mo:
                    mo['full'] = mo.group(1)
        f.close()
    except EnvironmentError:
        pass
    return keywords

dataset/ETHPy150Open Anaconda-Platform/chalmers/versioneer.py git_get_keywords/VarMisuse@123/175 `keywords`->`mo`