Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed unnecessary print statements in main.py.

  • Loading branch information...
commit b0533289d23fab073458603ca1af6aeae0991570 1 parent 06a4839
@nbprashanth authored
Showing with 3 additions and 14 deletions.
  1. +3 −14 main.py
View
17 main.py
@@ -33,26 +33,15 @@
inputlist_ori.append([pkgname, method, url, id, processed])
def main(inputlist):
- print "Inputlist received..."
- print inputlist
-
- print "Spawning the {0} threads.".format(THREAD_LIMIT)
for x in xrange(THREAD_LIMIT):
- print "Thread {0} started.".format(x)
workerbee().start()
- print "Putting stuff in queue"
for i in inputlist:
try:
jobs.put(i, block=True, timeout=5)
except:
- singlelock.acquire()
- print "The queue is full !"
- singlelock.release()
-
- singlelock.acquire()
- print "Waiting for threads to finish."
- singlelock.release()
+ pass
+
jobs.join()
class workerbee(threading.Thread):
@@ -132,4 +121,4 @@ def run(self):
break
if __name__ == '__main__':
- main(inputlist_ori)
+ main(inputlist_ori)
Please sign in to comment.
Something went wrong with that request. Please try again.