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
62491305
Commit
62491305
authored
Oct 21, 2016
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Python 3 imports for PyPy3 in lock.py. Fixes #866
parent
750e0bc4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
changelog.rst
changelog.rst
+2
-0
src/gevent/lock.py
src/gevent/lock.py
+7
-2
No files found.
changelog.rst
View file @
62491305
...
...
@@ -66,6 +66,8 @@ Platforms
* SSLSocket.recv(0) or read(0) returns an empty byte string. This is
a fix for `Python bug #23804 <http://bugs.python.org/issue23804>`_
which has been merged into Python 2.7 and Python 3.
- PyPy3 5.5.0 (supporting Python 3.3.5) is now tested and passes the
test suite. Thanks to btegs for :issue:`866`, XXX.
Stdlib Compatibility
--------------------
...
...
src/gevent/lock.py
View file @
62491305
...
...
@@ -23,6 +23,11 @@ __all__ = [
# to use locks *other* than the one being traced.)
if
PYPY
:
# TODO: Need to use monkey.get_original?
try
:
from
_thread
import
allocate_lock
as
_allocate_lock
# pylint:disable=import-error,useless-suppression
from
_thread
import
get_ident
as
_get_ident
# pylint:disable=import-error,useless-suppression
except
ImportError
:
# Python 2
from
thread
import
allocate_lock
as
_allocate_lock
# pylint:disable=import-error,useless-suppression
from
thread
import
get_ident
as
_get_ident
# pylint:disable=import-error,useless-suppression
_sem_lock
=
_allocate_lock
()
...
...
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