summaryrefslogtreecommitdiff
path: root/sleekxmpp/clientxmpp.py
diff options
context:
space:
mode:
authorNathan Fritz <nathan@andyet.net>2010-10-14 10:58:07 -0700
committerNathan Fritz <nathan@andyet.net>2010-10-14 10:58:07 -0700
commit0d0b963fe543169d069a2a69ae79735d404a2e33 (patch)
tree853d270219a799c884f26f3ed5806e407d5cac58 /sleekxmpp/clientxmpp.py
parenta41a4369c6238f0d479d4190e79df6332c5b98fe (diff)
downloadslixmpp-0d0b963fe543169d069a2a69ae79735d404a2e33.tar.gz
slixmpp-0d0b963fe543169d069a2a69ae79735d404a2e33.tar.bz2
slixmpp-0d0b963fe543169d069a2a69ae79735d404a2e33.tar.xz
slixmpp-0d0b963fe543169d069a2a69ae79735d404a2e33.zip
fixed socket name collision in xmlstream.py and fixed python 3.x compatibility
Diffstat (limited to 'sleekxmpp/clientxmpp.py')
-rw-r--r--sleekxmpp/clientxmpp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sleekxmpp/clientxmpp.py b/sleekxmpp/clientxmpp.py
index 1aab4a78..1816649a 100644
--- a/sleekxmpp/clientxmpp.py
+++ b/sleekxmpp/clientxmpp.py
@@ -162,7 +162,8 @@ class ClientXMPP(BaseXMPP):
intmax += answer.priority
addresses[intmax] = (answer.target.to_text()[:-1],
answer.port)
- priorities = addresses.keys()
+ #python3 returns a generator for dictionary keys
+ priorities = [x for x in addresses.keys()]
priorities.sort()
picked = random.randint(0, intmax)