예제 #1
0
 def run(self):
     while True:
         collector = LowesJson()
         num = job_q.get()
         print "Process " + str(self.thread_num) + " getting place: " + "%05d" % num
         s = collector.get_stores(num)
         if s != None:
             result_q.put(s)
         job_q.task_done()
예제 #2
0
	def run(self):
		while True:
			collector = LowesJson()
			num = job_q.get()
			print 'Process ' + str(self.thread_num) + ' getting place: ' + "%05d" % num
			s = collector.get_stores(num)
			if s != None:
				result_q.put(s)
			job_q.task_done()
예제 #3
0
def worker(num):
    collector = LowesJson()
    list = collector.get_stores(num)
    return list
예제 #4
0
def worker(num):
	collector = LowesJson()
	list = collector.get_stores(num)
	return list