def makeRecord(self, 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 = _logRecordFactory(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 (key in rv.__dict__):
                    raise KeyError(key % "Attempt to overwrite %r in LogRecord")
                rv.__dict__[key] = extra[key]
        return rv
dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/logging/__init__.py/Logger.makeRecord/swapped operands of `%`