summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-07-02 14:33:21 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-07-02 14:33:21 +0200
commitc55e9279acfa9947802bd681c9384ad7222a14a2 (patch)
treed5b69f7cbb4eb8dbe9faba8cd41a812d59852406
parent3502480384bd7d9f4e4eb1a3b92e8df08f4e487c (diff)
downloadslixmpp-c55e9279acfa9947802bd681c9384ad7222a14a2.tar.gz
slixmpp-c55e9279acfa9947802bd681c9384ad7222a14a2.tar.bz2
slixmpp-c55e9279acfa9947802bd681c9384ad7222a14a2.tar.xz
slixmpp-c55e9279acfa9947802bd681c9384ad7222a14a2.zip
Fix missing async def in function.
-rw-r--r--slixmpp/xmlstream/resolver.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/slixmpp/xmlstream/resolver.py b/slixmpp/xmlstream/resolver.py
index 3c3c9dda..379c53ac 100644
--- a/slixmpp/xmlstream/resolver.py
+++ b/slixmpp/xmlstream/resolver.py
@@ -152,7 +152,7 @@ async def resolve(host, port=None, service=None, proto='tcp',
return results
-def get_A(host, resolver=None, use_aiodns=True, loop=None):
+async def get_A(host, resolver=None, use_aiodns=True, loop=None):
"""Lookup DNS A records for a given host.
If ``resolver`` is not provided, or is ``None``, then resolution will