From 4212164e91ba2f49583cf44ad623a29b36db8f77 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Fri, 14 Sep 2018 19:32:27 -0700 Subject: Windows: Use 32-bit distribution of python --- python/gevent/lock.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'python/gevent/lock.py') diff --git a/python/gevent/lock.py b/python/gevent/lock.py index 506d8c5..00bf68c 100644 --- a/python/gevent/lock.py +++ b/python/gevent/lock.py @@ -201,6 +201,9 @@ class DummySemaphore(object): class RLock(object): + """ + A mutex that can be acquired more than once by the same greenlet. + """ def __init__(self): self._block = Semaphore(1) @@ -231,7 +234,7 @@ class RLock(object): def release(self): if self._owner is not getcurrent(): - raise RuntimeError("cannot release un-aquired lock") + raise RuntimeError("cannot release un-acquired lock") self._count = count = self._count - 1 if not count: self._owner = None -- cgit v1.2.3