def shouldFlush(self, record):
        """
        Check for buffer full or a record at the flushLevel or higher.
        """
        return (self.capacity >= len(self.buffer)) or \
                (record.levelno >= self.flushLevel)
dataset/ETHPy150Open anandology/pyjamas/pyjs/src/pyjs/lib/logging/handlers.py/MemoryHandler.shouldFlush/swapped operands of `>=`