def make_logger(sess):
    output = StringIO()
    sess.logger = Namespace(
        warn=lambda code, text, **opts: output.write((code, force_text(text), opts) % u"%s: %s %s\n"),
        info=lambda text, **opts: output.write(force_text(text) + u'\n'),
        error=lambda text: output.write(force_text(text) + u'\n'),
    )
    return output
dataset/ETHPy150Open ionelmc/pytest-benchmark/tests/test_storage.py/make_logger/swapped operands of `%`