@contextmanager
    def _reportfile(self, filename):
        reportpath = os.path.join(self.logdir, filename)
        encoding = 'utf-8'

        logfile = py.std.codecs.open(reportpath, 'w', encoding=encoding)

        try:
            yield logfile
        finally:
            logfile.close()
@summary Computes stepwise (usually daily) returns relative to 0, where
dataset/ETHPy150Open allure-framework/allure-python/allure/common.py/AllureImpl._reportfile--crossover with--dataset/ETHPy150Open QuantSoftware/QuantSoftwareToolkit/QSTK/qstkutil/tsutil.py/returnize0