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
4fe1dadc
Commit
4fe1dadc
authored
Jun 29, 2015
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore SocketType, fix test__all__.py
parent
bdddf00d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
gevent/_socket2.py
gevent/_socket2.py
+1
-1
gevent/_socket3.py
gevent/_socket3.py
+5
-1
gevent/_socketcommon.py
gevent/_socketcommon.py
+1
-0
No files found.
gevent/_socket2.py
View file @
4fe1dadc
...
...
@@ -10,7 +10,7 @@ for key in _socketcommon.__dict__:
globals
()[
key
]
=
getattr
(
_socketcommon
,
key
)
__socket__
=
_socketcommon
.
__socket__
__implements__
=
_socketcommon
.
_implements
+
[
'SocketType'
]
__implements__
=
_socketcommon
.
_implements
__extensions__
=
_socketcommon
.
__extensions__
__imports__
=
_socketcommon
.
__imports__
__dns__
=
_socketcommon
.
__dns__
...
...
gevent/_socket3.py
View file @
4fe1dadc
...
...
@@ -15,7 +15,7 @@ for key in _socketcommon.__dict__:
__socket__
=
_socketcommon
.
__socket__
__implements__
=
_socketcommon
.
_implements
__extensions__
=
_socketcommon
.
__extensions__
__imports__
=
_socketcommon
.
__imports__
+
[
'SocketType'
]
__imports__
=
_socketcommon
.
__imports__
__dns__
=
_socketcommon
.
__dns__
...
...
@@ -65,6 +65,7 @@ class socket(object):
# Only defined under Linux
@
property
def
type
(
self
):
# See https://github.com/gevent/gevent/pull/399
if
self
.
timeout
!=
0.0
:
return
self
.
_sock
.
type
&
~
_socket
.
SOCK_NONBLOCK
else
:
...
...
@@ -379,6 +380,9 @@ class socket(object):
self
.
_sock
.
shutdown
(
how
)
SocketType
=
socket
def
fromfd
(
fd
,
family
,
type
,
proto
=
0
):
""" fromfd(fd, family, type[, proto]) -> socket object
...
...
gevent/_socketcommon.py
View file @
4fe1dadc
...
...
@@ -4,6 +4,7 @@ from __future__ import absolute_import
# standard functions and classes that this module re-implements in a gevent-aware way:
_implements
=
[
'create_connection'
,
'socket'
,
'SocketType'
,
'fromfd'
,
'socketpair'
]
...
...
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