Skip to content

Commit

Permalink
Merge pull request #15 from Ed-von-Schleck/fix_getaddrinfo
Browse files Browse the repository at this point in the history
pyuv >= 1.0.0 has 'getaddrinfo()' in 'dns' module
  • Loading branch information
geertj committed Dec 22, 2014
2 parents a08c705 + cf3a587 commit e42135d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions gruvi/address.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def getaddrinfo(node, service=0, family=0, socktype=0, protocol=0, flags=0, time
"""
hub = get_hub()
with switch_back(timeout) as switcher:
request = pyuv.util.getaddrinfo(hub.loop, switcher, node, service, family,
socktype, protocol, flags)
request = pyuv.dns.getaddrinfo(hub.loop, switcher, node, service, family,
socktype, protocol, flags)
switcher.add_cleanup(request.cancel)
result = hub.switch()
result, error = result[0]
Expand All @@ -94,7 +94,7 @@ def getnameinfo(sockaddr, flags=0, timeout=30):
"""
hub = get_hub()
with switch_back(timeout) as switcher:
request = pyuv.util.getnameinfo(hub.loop, switcher, sockaddr, flags)
request = pyuv.dns.getnameinfo(hub.loop, switcher, sockaddr, flags)
switcher.add_cleanup(request.cancel)
result = hub.switch()
result, error = result[0]
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cffi >= 0.8
fibers >= 0.4
git+https://github.com/saghul/pyuv.git@pyuv-1.0.0.dev1#egg=pyuv
pyuv >= 1.0
six

0 comments on commit e42135d

Please sign in to comment.