We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 864a47f + ecf3847 commit 32eb9b3Copy full SHA for 32eb9b3
xmpp/transports.py
@@ -83,7 +83,7 @@ def srv_lookup(self, server):
83
if HAVE_DNSPYTHON:
84
answers = [x for x in dns.resolver.query(query, 'SRV')]
85
# Sort by priority, according to RFC 2782.
86
- answers.sort(answers, key=lambda a: a.priority)
+ answers.sort(key=lambda a: a.priority)
87
if answers:
88
host = str(answers[0].target)
89
port = int(answers[0].port)
0 commit comments