Chris McDonough  committed 4f5bde0

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

  • Participants
  • Parent commits df66102

Comments (0)

Files changed (2)

File dogpile/

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

File dogpile/

-    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.