Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

        def server_compile(infile):
    for line in infile:
        mi = include_re.match(line)
        ma = addpath_re.match(line)
        if mi is not None:
            with open(findfile(mi.group(1) + '.py')) as fi:
                for line in server_compile(fi):
                    if line.startswith('#'): continue
                    yield line
            yield '\n'
        elif ma is not None:
            filepath.append(ma.group(1).strip('\''))
        else: yield line
        


src/a/n/antigfw-HEAD/gengae.py   antigfw(Download)
    os.chdir(path.dirname(srcpath))
    with open(path.basename(srcpath)) as fi:
        data = ''.join(sc.server_compile(fi))
    os.chdir(d)
    with open(dstpath, 'w') as fo: fo.write(data)