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
7cd722df
Commit
7cd722df
authored
Sep 18, 2017
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to fix failures on travis ci
parent
cde3c239
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
src/gevent/socket.py
src/gevent/socket.py
+1
-6
No files found.
src/gevent/socket.py
View file @
7cd722df
...
...
@@ -15,7 +15,6 @@ as well as the constants from the :mod:`socket` module are imported into this mo
import
sys
from
gevent._compat
import
PY3
from
gevent._compat
import
reraise
from
gevent._util
import
copy_globals
...
...
@@ -75,7 +74,6 @@ def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, source_address=N
host
,
port
=
address
err
=
None
tb
=
None
for
res
in
getaddrinfo
(
host
,
port
,
0
if
has_ipv6
else
AF_INET
,
SOCK_STREAM
):
af
,
socktype
,
proto
,
_
,
sa
=
res
sock
=
None
...
...
@@ -92,19 +90,16 @@ def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, source_address=N
# and the next bind() fails (see test__socket.TestCreateConnection)
# that does not happen with regular sockets though, because _socket.socket.connect() is a built-in.
# this is similar to "getnameinfo loses a reference" failure in test_socket.py
tb
=
sys
.
exc_info
()[
2
]
if
not
PY3
:
sys
.
exc_clear
()
# pylint:disable=no-member,useless-suppression
if
sock
is
not
None
:
sock
.
close
()
err
=
ex
sock
=
None
if
err
is
not
None
:
try
:
r
eraise
(
type
(
err
),
err
,
tb
)
# pylint:disable=raising-bad-type
r
aise
err
# pylint:disable=raising-bad-type
finally
:
err
=
None
tb
=
None
else
:
raise
error
(
"getaddrinfo returns an empty list"
)
...
...
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