Commit b44cfbd1 authored by Denis Bilenko's avatar Denis Bilenko

ares.pyx: allow servers to be passed as unicode PY3

parent b36f9d3e
......@@ -327,6 +327,8 @@ cdef public class channel [object PyGeventAresChannelObject, type PyGeventAresCh
try:
index = 0
for server in servers:
if isinstance(server, str):
server = server.encode()
string = <char*?>server
if cares.ares_inet_pton(AF_INET, string, &c_servers[index].addr) > 0:
c_servers[index].family = AF_INET
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment