Commit b02a047c authored by Denis Bilenko's avatar Denis Bilenko

rename gevent.coros to gevent.lock

--HG--
rename : gevent/coros.py => gevent/lock.py
parent eb5f7089
......@@ -129,7 +129,7 @@ affects what we see:
from weakref import WeakKeyDictionary
from copy import copy
from gevent.hub import getcurrent
from gevent.coros import RLock
from gevent.lock import RLock
__all__ = ["local"]
......
......@@ -16,7 +16,7 @@ from gevent.hub import GreenletExit, getcurrent, kill as _kill
from gevent.greenlet import joinall, Greenlet
from gevent.timeout import Timeout
from gevent.event import Event
from gevent.coros import Semaphore, DummySemaphore
from gevent.lock import Semaphore, DummySemaphore
from gevent import six
__all__ = ['Group', 'Pool']
......
......@@ -103,7 +103,7 @@ class DatagramServer(BaseServer):
def __init__(self, *args, **kwargs):
BaseServer.__init__(self, *args, **kwargs)
from gevent.coros import Semaphore
from gevent.lock import Semaphore
self._writelock = Semaphore()
def init_socket(self):
......
......@@ -25,7 +25,7 @@ __thread__ = __import__(__target__)
error = __thread__.error
from gevent.hub import getcurrent, GreenletExit
from gevent.greenlet import Greenlet
from gevent.coros import Semaphore as LockType
from gevent.lock import Semaphore as LockType
from gevent.local import local as _local
......
......@@ -6,7 +6,7 @@ from gevent.hub import get_hub, sleep
from gevent.event import AsyncResult
from gevent.greenlet import Greenlet
from gevent.pool import IMap, IMapUnordered
from gevent.coros import Semaphore
from gevent.lock import Semaphore
from gevent._threading import Lock, Queue, start_new_thread
from gevent.six import integer_types
......
import greentest
import gevent
from gevent.coros import Semaphore
from gevent.lock import Semaphore
class TestTimeoutAcquire(greentest.TestCase):
......
......@@ -3,7 +3,7 @@ from __future__ import with_statement
setup_ = '''from gevent import monkey; monkey.patch_all()
from gevent.event import Event
from gevent.coros import RLock, Semaphore, BoundedSemaphore
from gevent.lock import RLock, Semaphore, BoundedSemaphore
from gevent.thread import allocate_lock as Lock
import threading
threading.Event = Event
......
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