コード例 #1
0
ファイル: spider.py プロジェクト: SMFOSS/melk.util
    def __init__(self, cache=None, **kw):
        """
        @param cache a folder to use as a cache or an httplib2 cache
        """
        ThreadPool.__init__(self, **kw)

        self._cache = cache
コード例 #2
0
ファイル: test_threadpool.py プロジェクト: SMFOSS/melk.util
 def __init__(self):
     ThreadPool.__init__(self, poolsize=5, output_queue=TaskQueue())