Windows: Use 32-bit distribution of python

This commit is contained in:
James Taylor
2018-09-14 19:32:27 -07:00
parent 6ca20ff701
commit 4212164e91
166 changed files with 175548 additions and 44620 deletions

View File

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