Commits

Chris McDonough committed ca11f60

get rid of NameError for LockError, use util.threading instead of a conditional import in readwrite_lock

Comments (0)

Files changed (2)

dogpile/dogpile.py

-from util import thread, threading
+from util import threading
 import time
 import logging
 from readwrite_lock import ReadWriteMutex

dogpile/readwrite_lock.py

-try:
-    import threading
-except ImportError:
-    import dummy_threading as threading
+from util import threading
 
 import logging
 log = logging.getLogger(__name__)
 
+class LockError(Exception):
+    pass
+
 class ReadWriteMutex(object):
     """A mutex which allows multiple readers, single writer.