1. Ralph Bean
  2. dogpile.core

Commits

Chris McDonough  committed ca11f60

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

  • Participants
  • Parent commits 006d488
  • Branches default

Comments (0)

Files changed (2)

File dogpile/dogpile.py

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

File dogpile/readwrite_lock.py

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