예제 #1
0
파일: download.py 프로젝트: abn/pyrus
	def __init__(self, consumers=4):
		AbstractQueueConsumer.__init__(self, consumers)
예제 #2
0
파일: download.py 프로젝트: abn/pyrus
	def _initialize(self, consumers):
		self._downloads = self._manager.dict()
		self._results = self._manager.dict()
		AbstractQueueConsumer._initialize(self, consumers)
예제 #3
0
파일: mplogging.py 프로젝트: abn/pyrus
	def _initialize(self, consumers):
		"""Internal method to initialize all global variables. This initializes
		the manager, queue, pool and trigger the consumer."""
		self.level = DFAULT_LOG_LEVEL
		# This is used to securely terminate the logging process once started
		AbstractQueueConsumer._initialize(self, consumers)