def __init__(self, maxsize=50000):
    self.buffer = collections.deque()
    self.maxsize = maxsize
    self.size = 0
maxsize is in characters, not bytes.
dataset/ETHPy150Open cloudera/hue/desktop/core/src/desktop/log/log_buffer.py/FixedBuffer.__init__