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
b0af1ee6
Commit
b0af1ee6
authored
May 30, 2011
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
on py3k 'thread' is called '_thread' and that's what we will monkey patch
parent
e8d48e98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
gevent/thread.py
gevent/thread.py
+6
-2
No files found.
gevent/thread.py
View file @
b0af1ee6
...
...
@@ -6,6 +6,7 @@
used directly. For spawning greenlets in your applications, prefer
:class:`Greenlet` class.
"""
import
sys
__implements__
=
[
'allocate_lock'
,
'get_ident'
,
...
...
@@ -16,8 +17,11 @@ __implements__ = ['allocate_lock',
'_local'
]
__imports__
=
[
'error'
]
__thread__
=
__import__
(
'thread'
)
if
sys
.
version_info
[
0
]
<=
2
:
__target__
=
'thread'
else
:
__target__
=
'_thread'
__thread__
=
__import__
(
__target__
)
error
=
__thread__
.
error
from
gevent.hub
import
getcurrent
,
GreenletExit
from
gevent.greenlet
import
Greenlet
...
...
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