Skip to content

Commit 32eb9b3

Browse files
committed
Merge pull request xmpppy#9 from provonet/master
Fixed sorting SRV records
2 parents 864a47f + ecf3847 commit 32eb9b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xmpp/transports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def srv_lookup(self, server):
8383
if HAVE_DNSPYTHON:
8484
answers = [x for x in dns.resolver.query(query, 'SRV')]
8585
# Sort by priority, according to RFC 2782.
86-
answers.sort(answers, key=lambda a: a.priority)
86+
answers.sort(key=lambda a: a.priority)
8787
if answers:
8888
host = str(answers[0].target)
8989
port = int(answers[0].port)

0 commit comments

Comments
 (0)