def _makeRecord(name, level, fn, lno, msg, args, exc_info,
                func=None, extra=None, sinfo=None):
    """
    A factory method which can be overridden in subclasses to create
    specialized LogRecords.
    """
    rv = _LogRecord(name, level, fn, lno, msg, args, exc_info, func,
                    sinfo)
    if extra is not None:
        for key in extra:
            if (key in ["message", "asctime"]) or (rv.__dict__ in key):
                raise KeyError("Attempt to overwrite %r in LogRecord" % key)
            rv.__dict__[key] = extra[key]
    return rv
dataset/ETHPy150Open LabPy/lantz/lantz/log.py/_makeRecord/swapped operands of `in`