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
c93c89fa
Commit
c93c89fa
authored
Oct 21, 2016
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test__server.py for pypy3
parent
afa27cf4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
src/gevent/_socket3.py
src/gevent/_socket3.py
+10
-2
No files found.
src/gevent/_socket3.py
View file @
c93c89fa
...
...
@@ -13,6 +13,7 @@ import sys
import
time
from
gevent
import
_socketcommon
from
gevent._util
import
copy_globals
from
gevent._compat
import
PYPY
import
_socket
from
os
import
dup
...
...
@@ -50,6 +51,13 @@ class _wrefsocket(_socket.socket):
__slots__
=
(
"__weakref__"
,
)
if
PYPY
:
# server.py unwraps the socket object to get the raw _sock;
# it depends on having a timeout property alias, which PyPy does not
# provide.
timeout
=
property
(
lambda
s
:
s
.
gettimeout
(),
lambda
s
,
nv
:
s
.
settimeout
(
nv
))
class
socket
(
object
):
"""
...
...
@@ -467,10 +475,10 @@ class socket(object):
howlong
=
f
()
if
howlong
<
0.0
:
raise
ValueError
(
'Timeout value out of range'
)
self
.
timeout
=
howlong
self
.
__dict__
[
'timeout'
]
=
howlong
def
gettimeout
(
self
):
return
self
.
timeout
return
self
.
__dict__
[
'timeout'
]
def
shutdown
(
self
,
how
):
if
how
==
0
:
# SHUT_RD
...
...
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