summaryrefslogtreecommitdiff
path: root/sleekxmpp/basexmpp.py
diff options
context:
space:
mode:
authorLance stout <lancestout@gmail.com>2010-06-01 10:52:37 -0400
committerLance stout <lancestout@gmail.com>2010-06-01 10:52:37 -0400
commitf5cae85af5c2f9c79ade1e6413436c1206689bdd (patch)
treec0f87537fa189886651900221556151f81e25100 /sleekxmpp/basexmpp.py
parent01e8040a077d4fefdec2c599e75ea93918e9f538 (diff)
downloadslixmpp-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/basexmpp.py')
-rw-r--r--sleekxmpp/basexmpp.py2
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'})