Commit 6e968707 authored by Denis Bilenko's avatar Denis Bilenko

lock.py: minor change in DummySemaphore

make __enter__ and __exit__ truly noop (previously they called acquire/release)
parent 184bc929
......@@ -160,10 +160,10 @@ class DummySemaphore(object):
pass
def __enter__(self):
self.acquire()
pass
def __exit__(self, typ, val, tb):
self.release()
pass
class BoundedSemaphore(Semaphore):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment