anycall/bytequeue.py
def drop(self, n):
        """
        Removes `n` bytes from the beginning of the queue.
        
        Throws an error if there are less than `n` characters in the queue.
        
        Equivalent to::
        
            queue = queue[n:]
            
        if `queue` where a regular string.
        """
        if self._len < n:
            raise ValueError("Not enough bytes in the queue")
        self._len -= n
        

        remaining = n
        while remaining:
            part = self._parts.popleft()
            if len(part) <= remaining:
                remaining -= len(part)
            else:
                self._parts.appendleft(part[remaining:])
                remaining = 0
def drop(self, n):
        """
        Removes `n` bytes from the beginning of the queue.
        
        Throws an error if there are less than `n` characters in the queue.
        
        Equivalent to::
        
            queue = queue[n:]
            
        if `queue` where a regular string.
        """
        if self._len < n:
            raise ValueError("Not enough bytes in the queue")
        self._len -= n
        

        remaining = n
        while remaining:
            part = self._parts.popleft()
            if len(part) <= remaining:
                remaining -= len(part)
            else:
                self._parts.appendleft(part[remaining:])
                remaining = 0
Removes `n` bytes from the beginning of the queue.
        
        Throws an error if there are less than `n` characters in the queue.
        
        Equivalent to::
        
            queue = queue[n:]
            
        if `queue` where a regular string.