def __init__(self, filename):
    logging.handlers.BaseRotatingHandler.__init__(self, filename, "a")

    assert self.encoding is None, "Encoding not supported for logging"
    assert not hasattr(self, "_reopen"), "Base class has '_reopen' attribute"

    self._reopen = False
Converts #123456 values to colors.
dataset/ETHPy150Open ganeti/ganeti/lib/utils/log.py/_ReopenableLogHandler.__init__--crossover with--dataset/ETHPy150Open tomerfiliba/plumbum/plumbum/colorlib/styles.py/Color.from_hex