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

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

src/h/e/hellanzb-HEAD/Hellanzb/NZBLeecher/__init__.py   hellanzb(Download)
from Hellanzb.Logging import NZBLeecherTicker
from Hellanzb.Util import isWindows
from Hellanzb.NZBLeecher.NZBSegmentQueue import FillServerQueue, NZBSegmentQueue
from Hellanzb.NZBLeecher.NZBLeecherUtil import HellaThrottler, HellaThrottlingFactory
from Hellanzb.NZBLeecher.Protocol import NZBLeecherFactory
        Hellanzb.queue = FillServerQueue()
    else:
        Hellanzb.queue = NZBSegmentQueue()
 
    # The NZBLeecherFactories

src/h/e/hellanzb-HEAD/Hellanzb/NZBLeecher/NZBParser.py   hellanzb(Download)
 
        # heapq priority
        from Hellanzb.NZBLeecher.NZBSegmentQueue import NZBSegmentQueue
        self.nzbContentPriority = NZBSegmentQueue.NZB_CONTENT_P
 

src/h/e/hellanzb-HEAD/Hellanzb/test/PriorityQueueTestCase.py   hellanzb(Download)
import time, unittest, Hellanzb
from Hellanzb.test import HellanzbTestCase
from Hellanzb.Log import *
from Hellanzb.Util import PriorityQueue
from Hellanzb.NZBLeecher.NZBSegmentQueue import NZBSegmentQueue
    def testGetBenchmark(self):
        info('Putting NZB')
        start = time.time()
        q = NZBSegmentQueue('/home/pjenvey/src/hellanzb/Hellanzb/test/testdata/test_get.nzb')
        elapsed = time.time() - start
        info('better statistics..')
        stats = []
        q2 = NZBSegmentQueue('/home/pjenvey/src/hellanzb/Hellanzb/test/testdata/test_get.nzb')
        try:
            while 1:
    def dtestNZBSegmentQueue(self):
        """ Benchmark loading a typical NZB file into an NZBSegmentQueue via the parser, and also via a
        simple put() loop """
        start = time.time()
        temp = NZBSegmentQueue('Hellanzb/test/testdata/msgid_1008115_Bring__Um_Young_#2.nzb')
 
        del temp
        nzbq = NZBSegmentQueue()
        for i in list:
            nzbq.put((NZBSegmentQueue.NZB_CONTENT_P, i))

src/h/e/hellanzb-HEAD/Hellanzb/test/StateXMLTestCase.py   hellanzb(Download)
from Hellanzb.NZBLeecher.NZBModel import NZB, NZBFile
from Hellanzb.NZBQueue import recoverStateFromDisk
from Hellanzb.NZBLeecher.NZBSegmentQueue import NZBSegmentQueue
from Hellanzb.PostProcessorUtil import PAR2
from Hellanzb.Util import toUnicode
    def setUpEnv(self):
        self.stateXMLFileName = os.path.join(self.tempDir, 'testState.xml')
        self.stateXMLFile = open(self.stateXMLFileName, 'w+')
        Hellanzb.queue = NZBSegmentQueue()
        Hellanzb.postProcessors = []