diff options
author | Nathan Fritz <nathan@andyet.net> | 2010-10-14 10:58:07 -0700 |
---|---|---|
committer | Nathan Fritz <nathan@andyet.net> | 2010-10-14 10:58:07 -0700 |
commit | 0d0b963fe543169d069a2a69ae79735d404a2e33 (patch) | |
tree | 853d270219a799c884f26f3ed5806e407d5cac58 /sleekxmpp/clientxmpp.py | |
parent | a41a4369c6238f0d479d4190e79df6332c5b98fe (diff) | |
download | slixmpp-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.py | 3 |
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) |