Skip to content

Instantly share code, notes, and snippets.

@sirwart
sirwart / .block
Last active October 15, 2016 01:06
Fatal Encounters Deaths by State
license: mit
# -*- coding: utf-8 -*-
import httplib
import re
import threadingq
from urlparse import urlsplit
class ConcurrentWorker(object):
def __init__(self, num_threads, first_task):
self.task_queue = [first_task]
self.lock = threading.Condition()