(self, global_docnum)
Removes a document from the collector. Not that this method uses the
        global document number as opposed to :meth:`Collector.collect` which
        takes a segment-relative docnum.
Removes a document from the collector. Not that this method uses the
        global document number as opposed to :meth:`Collector.collect` which
        takes a segment-relative docnum.
Removes a document from the collector . Not that this method uses the global document number as opposed to : meth : Collector . collect which takes a segment - relative docnum .
def remove(self, global_docnum):
        """Removes a document from the collector. Not that this method uses the
        global document number as opposed to :meth:`Collector.collect` which
        takes a segment-relative docnum.
        """

        items = self.items
        for i in xrange(len(items)):
            if items[i][1] == global_docnum:
                items.pop(i)
                return
        raise KeyError(global_docnum)
def remove ( self , global_docnum ) : items = self . items for i in xrange ( len ( items ) ) : if items [ i ] [ 1 ] == global_docnum : items . pop ( i ) return raise KeyError ( global_docnum )