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
1f9a1f06
Commit
1f9a1f06
authored
May 30, 2011
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use PyBytes_FromString instead of PyString_FromString (py3k)
parent
359ed6c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gevent/ares.pyx
gevent/ares.pyx
+3
-3
No files found.
gevent/ares.pyx
View file @
1f9a1f06
...
...
@@ -27,7 +27,7 @@ cdef extern from "dnshelper.c":
# this imports _socket lazily
object
get_socket_error
()
object
get_socket_gaierror
()
object
Py
String
_FromString
(
char
*
)
object
Py
Bytes
_FromString
(
char
*
)
int
PyTuple_Check
(
object
)
int
PyArg_ParseTuple
(
object
,
char
*
,
...)
except
0
struct
sockaddr_in6
:
...
...
@@ -207,11 +207,11 @@ cdef void gevent_ares_nameinfo_callback(void *arg, int status, int timeouts, cha
callback
(
result
(
None
,
get_socket_gaierror
()(
status
,
strerror
(
status
))))
else
:
if
c_node
:
node
=
Py
String
_FromString
(
c_node
)
node
=
Py
Bytes
_FromString
(
c_node
)
else
:
node
=
None
if
c_service
:
service
=
Py
String
_FromString
(
c_service
)
service
=
Py
Bytes
_FromString
(
c_service
)
else
:
service
=
None
callback
(
result
((
node
,
service
)))
...
...
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