Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
b02a047c
Commit
b02a047c
authored
Apr 09, 2012
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename gevent.coros to gevent.lock
--HG-- rename : gevent/coros.py => gevent/lock.py
parent
eb5f7089
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
7 additions
and
7 deletions
+7
-7
gevent/local.py
gevent/local.py
+1
-1
gevent/lock.py
gevent/lock.py
+0
-0
gevent/pool.py
gevent/pool.py
+1
-1
gevent/server.py
gevent/server.py
+1
-1
gevent/thread.py
gevent/thread.py
+1
-1
gevent/threadpool.py
gevent/threadpool.py
+1
-1
greentest/test__semaphore.py
greentest/test__semaphore.py
+1
-1
greentest/test_threading_2.py
greentest/test_threading_2.py
+1
-1
No files found.
gevent/local.py
View file @
b02a047c
...
...
@@ -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"
]
...
...
gevent/
coros
.py
→
gevent/
lock
.py
View file @
b02a047c
File moved
gevent/pool.py
View file @
b02a047c
...
...
@@ -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'
]
...
...
gevent/server.py
View file @
b02a047c
...
...
@@ -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
):
...
...
gevent/thread.py
View file @
b02a047c
...
...
@@ -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
...
...
gevent/threadpool.py
View file @
b02a047c
...
...
@@ -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
...
...
greentest/test__semaphore.py
View file @
b02a047c
import
greentest
import
gevent
from
gevent.
coros
import
Semaphore
from
gevent.
lock
import
Semaphore
class
TestTimeoutAcquire
(
greentest
.
TestCase
):
...
...
greentest/test_threading_2.py
View file @
b02a047c
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment