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
05aff439
Commit
05aff439
authored
Dec 21, 2013
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #360 from fantix/thread_renaming
Handle renaming of "thread" to "_thread" in PY3
parents
d48e4d86
1f02e4a9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
3 deletions
+13
-3
gevent/thread.py
gevent/thread.py
+1
-0
greentest/test__core_async.py
greentest/test__core_async.py
+4
-1
greentest/test__monkey.py
greentest/test__monkey.py
+4
-1
greentest/test_threading_2.py
greentest/test_threading_2.py
+4
-1
No files found.
gevent/thread.py
View file @
05aff439
...
...
@@ -22,6 +22,7 @@ if sys.version_info[0] <= 2:
import
thread
as
__thread__
else
:
import
_thread
as
__thread__
__target__
=
'_thread'
error
=
__thread__
.
error
from
gevent.hub
import
getcurrent
,
GreenletExit
from
gevent.greenlet
import
Greenlet
...
...
greentest/test__core_async.py
View file @
05aff439
...
...
@@ -2,7 +2,10 @@ from __future__ import with_statement
import
gevent
import
gevent.core
import
time
import
thread
try
:
import
thread
except
ImportError
:
import
_thread
as
thread
hub
=
gevent
.
get_hub
()
...
...
greentest/test__monkey.py
View file @
05aff439
...
...
@@ -4,7 +4,10 @@ monkey.patch_all()
import
time
assert
'built-in'
not
in
repr
(
time
.
sleep
),
repr
(
time
.
sleep
)
import
thread
try
:
import
thread
except
ImportError
:
import
_thread
as
thread
import
threading
assert
'built-in'
not
in
repr
(
thread
.
start_new_thread
),
repr
(
thread
.
start_new_thread
)
assert
'built-in'
not
in
repr
(
threading
.
_start_new_thread
),
repr
(
threading
.
_start_new_thread
)
...
...
greentest/test_threading_2.py
View file @
05aff439
...
...
@@ -37,7 +37,10 @@ import random
import
re
import
sys
import
threading
import
thread
try
:
import
thread
except
ImportError
:
import
_thread
as
thread
import
time
import
unittest
import
weakref
...
...
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