summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream/resolver.py
diff options
context:
space:
mode:
Diffstat (limited to 'sleekxmpp/xmlstream/resolver.py')
-rw-r--r--sleekxmpp/xmlstream/resolver.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sleekxmpp/xmlstream/resolver.py b/sleekxmpp/xmlstream/resolver.py
index db97f5fb..3c3896a3 100644
--- a/sleekxmpp/xmlstream/resolver.py
+++ b/sleekxmpp/xmlstream/resolver.py
@@ -94,14 +94,14 @@ def resolve(host, port=None, service=None, proto='tcp', resolver=None):
try:
# If `host` is an IPv4 literal, we can return it immediately.
ipv4 = socket.inet_pton(socket.AF_INET, host)
- yield [(host, port)]
+ yield (host, port)
except socket.error:
pass
try:
# Likewise, If `host` is an IPv6 literal, we can return it immediately.
ipv6 = socket.inet_pton(socket.AF_INET6, host)
- yield [(host, port)]
+ yield (host, port)
except socket.error:
pass