Skip to content

Commit ecf3847

Browse files
committed
fixed sorting records (DNSPYTHON)
1 parent 864a47f commit ecf3847

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)