dummy_thread needs to support PEP 343 too.

This commit is contained in:
Phillip J. Eby 2006-03-27 23:32:10 +00:00
parent b6e92c40a9
commit 849974fb56

View file

@ -113,6 +113,14 @@ class LockType(object):
self.locked_status = True
return True
__enter__ = acquire
def __exit__(self, typ, val, tb):
self.release()
def __context__(self):
return self
def release(self):
"""Release the dummy lock."""
# XXX Perhaps shouldn't actually bother to test? Could lead