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
f6f59675
Commit
f6f59675
authored
Mar 22, 2019
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Version simplifications.
parent
0ccd42ca
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
22 deletions
+5
-22
src/gevent/_socket3.py
src/gevent/_socket3.py
+1
-18
src/gevent/monkey.py
src/gevent/monkey.py
+1
-1
src/gevent/tests/known_failures.py
src/gevent/tests/known_failures.py
+1
-1
src/gevent/tests/test__monkey_selectors.py
src/gevent/tests/test__monkey_selectors.py
+1
-1
src/gevent/tests/test__threading_monkey_in_thread.py
src/gevent/tests/test__threading_monkey_in_thread.py
+1
-1
No files found.
src/gevent/_socket3.py
View file @
f6f59675
...
...
@@ -628,24 +628,7 @@ class socket(object):
del
_added
if
sys
.
version_info
[:
2
]
==
(
3
,
4
)
and
sys
.
version_info
[:
3
]
<=
(
3
,
4
,
2
):
# Python 3.4, up to and including 3.4.2, had a bug where the
# SocketType enumeration overwrote the SocketType class imported
# from _socket. This was fixed in 3.4.3 (http://bugs.python.org/issue20386
# and https://github.com/python/cpython/commit/0d2f85f38a9691efdfd1e7285c4262cab7f17db7).
# Prior to that, if we replace SocketType with our own class, the implementation
# of socket.type breaks with "OSError: [Errno 97] Address family not supported by protocol".
# Therefore, on these old versions, we must preserve it as an enum; while this
# seems like it could lead to non-green behaviour, code on those versions
# cannot possibly be using SocketType as a class anyway.
SocketType
=
__socket__
.
SocketType
# pylint:disable=no-member
# Fixup __all__; note that we get exec'd multiple times during unit tests
if
'SocketType'
in
__implements__
:
__implements__
.
remove
(
'SocketType'
)
if
'SocketType'
not
in
__imports__
:
__imports__
.
append
(
'SocketType'
)
else
:
SocketType
=
socket
SocketType
=
socket
def
fromfd
(
fd
,
family
,
type
,
proto
=
0
):
...
...
src/gevent/monkey.py
View file @
f6f59675
...
...
@@ -827,7 +827,7 @@ def patch_select(aggressive=True):
remove_item
(
select
,
'kevent'
)
remove_item
(
select
,
'devpoll'
)
if
sys
.
version_info
[:
2
]
>=
(
3
,
4
)
:
if
PY3
:
# Python 3 wants to use `select.select` as a member function,
# leading to this error in selectors.py (because gevent.select.select is
# not a builtin and doesn't get the magic auto-static that they do)
...
...
src/gevent/tests/known_failures.py
View file @
f6f59675
...
...
@@ -314,7 +314,7 @@ if PY3:
if
sys
.
version_info
[:
2
]
>=
(
3
,
4
)
and
APPVEYOR
:
if
PY3
and
APPVEYOR
:
FAILING_TESTS
+=
[
# Timing issues on appveyor
'FLAKY test_selectors.py'
...
...
src/gevent/tests/test__monkey_selectors.py
View file @
f6f59675
...
...
@@ -8,7 +8,7 @@ except ImportError:
from
gevent.monkey
import
patch_all
patch_all
()
if
sys
.
platform
!=
'win32'
and
sys
.
version_info
[:
2
]
>=
(
3
,
4
)
:
if
sys
.
platform
!=
'win32'
and
greentest
.
PY3
:
class
TestSelectors
(
greentest
.
TestCase
):
...
...
src/gevent/tests/test__threading_monkey_in_thread.py
View file @
f6f59675
...
...
@@ -44,7 +44,7 @@ class Test(greentest.TestCase):
# We generated some warnings
if
sys
.
version_info
>=
(
3
,
4
)
:
if
greentest
.
PY3
:
self
.
assertEqual
(
all_warnings
,
[
'Monkey-patching outside the main native thread. Some APIs will not be '
'available. Expect a KeyError to be printed at shutdown.'
,
...
...
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