diff options
author | Lance stout <lancestout@gmail.com> | 2010-06-01 10:52:37 -0400 |
---|---|---|
committer | Lance stout <lancestout@gmail.com> | 2010-06-01 10:52:37 -0400 |
commit | f5cae85af5c2f9c79ade1e6413436c1206689bdd (patch) | |
tree | c0f87537fa189886651900221556151f81e25100 /sleekxmpp | |
parent | 01e8040a077d4fefdec2c599e75ea93918e9f538 (diff) | |
download | slixmpp-f5cae85af5c2f9c79ade1e6413436c1206689bdd.tar.gz slixmpp-f5cae85af5c2f9c79ade1e6413436c1206689bdd.tar.bz2 slixmpp-f5cae85af5c2f9c79ade1e6413436c1206689bdd.tar.xz slixmpp-f5cae85af5c2f9c79ade1e6413436c1206689bdd.zip |
Make sure that the id parameter used in xmpp.makeIq is converted to a string.
Otherwise, SleekXMPP will barf on trying to serialize an integer when it expects text.
Diffstat (limited to 'sleekxmpp')
-rw-r--r-- | sleekxmpp/basexmpp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/basexmpp.py b/sleekxmpp/basexmpp.py index 907067fa..d2dd3fb4 100644 --- a/sleekxmpp/basexmpp.py +++ b/sleekxmpp/basexmpp.py @@ -152,7 +152,7 @@ class basexmpp(object): return waitfor.wait(timeout) def makeIq(self, id=0, ifrom=None): - return self.Iq().setValues({'id': id, 'from': ifrom}) + return self.Iq().setValues({'id': str(id), 'from': ifrom}) def makeIqGet(self, queryxmlns = None): iq = self.Iq().setValues({'type': 'get'}) |