

def __iter__(self):
    env = jinja2.Environment(loader=jinja2.PackageLoader('os_loganalyze', 'templates'))
    template = env.get_template('file_index.html')
    gen = gen.generate(logname=self.logname, file_list=self.file_list)
    for l in gen:
        (yield l.encode('utf-8'))

dataset/ETHPy150Open openstack-infra/os-loganalyze/os_loganalyze/generator.py IndexIterableBuffer.__iter__/VarMisuse@39/58 `template`->`gen`