Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/h/e/hellanzb-HEAD/Hellanzb/NZBLeecher/NZBSegmentQueue.py   hellanzb(Download)
            self.rQueue.requeue(serverFactory.serverPoolName, segment)
            self.put((segment.priority, segment))
        # There's a funny case where other NZBLeechers in the calling NZBLeecher's factory
            # isSkippedParFile for us
            if not nzbSegment.nzbFile.isSkippedPar:
                self.put((nzbSegment.priority, nzbSegment))
                # This would need to be downloaded if we didn't skip the segment, they are
            for nzbSegment in needDlSegments:
                if nzbSegment.nzbFile.isSkippedPar:
                    self.put((nzbSegment.priority, nzbSegment))

src/h/e/hellanzb-HEAD/Hellanzb/test/PriorityQueueTestCase.py   hellanzb(Download)
                total += posts[p].numparts
                for part in posts[p].parts:
                        pq.put((NZB_CONTENT_P, posts[p].parts[part]))
        elapsed = time.time() - start