From e55e213c78e718942cc741e24375dcbb393503c2 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Tue, 28 Dec 2010 16:17:08 -0500 Subject: Fix some typos. --- sleekxmpp/basexmpp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sleekxmpp/basexmpp.py') diff --git a/sleekxmpp/basexmpp.py b/sleekxmpp/basexmpp.py index 42cbaa04..fa0d1ae0 100644 --- a/sleekxmpp/basexmpp.py +++ b/sleekxmpp/basexmpp.py @@ -245,7 +245,7 @@ class BaseXMPP(XMLStream): """Create a Presence stanza associated with this stream.""" return Presence(self, *args, **kwargs) - def make_iq(self, id=0, ifrom=None, ito=None, type=None, query=None): + def make_iq(self, id=0, ifrom=None, ito=None, itype=None, iquery=None): """ Create a new Iq stanza with a given Id and from JID. @@ -262,7 +262,7 @@ class BaseXMPP(XMLStream): iq['to'] = ito iq['from'] = ifrom iq['type'] = itype - iq['query'] = query + iq['query'] = iquery return iq def make_iq_get(self, queryxmlns=None, ito=None, ifrom=None, iq=None): -- cgit v1.2.3 From 596e135a03cd1dfd8eb27b63cdfe791d8f28317d Mon Sep 17 00:00:00 2001 From: Andrzej Bieniek Date: Tue, 28 Dec 2010 21:32:28 +0000 Subject: Fixed typo in comment. --- sleekxmpp/basexmpp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sleekxmpp/basexmpp.py') diff --git a/sleekxmpp/basexmpp.py b/sleekxmpp/basexmpp.py index fa0d1ae0..b173db5e 100644 --- a/sleekxmpp/basexmpp.py +++ b/sleekxmpp/basexmpp.py @@ -254,8 +254,8 @@ class BaseXMPP(XMLStream): Defaults to 0. ifrom -- The from JID to use for this stanza. ito -- The destination JID for this stanza. - type -- The Iq's type, one of: get, set, result, or error. - query -- Optional namespace for adding a query element. + itype -- The Iq's type, one of: get, set, result, or error. + iquery -- Optional namespace for adding a query element. """ iq = self.Iq() iq['id'] = str(id) -- cgit v1.2.3 From e08b0054b2e07bf3ee73bc974135baf7e6f3f819 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Wed, 29 Dec 2010 15:01:50 -0500 Subject: Keep things lined up. --- sleekxmpp/basexmpp.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sleekxmpp/basexmpp.py') diff --git a/sleekxmpp/basexmpp.py b/sleekxmpp/basexmpp.py index b173db5e..bc168b8c 100644 --- a/sleekxmpp/basexmpp.py +++ b/sleekxmpp/basexmpp.py @@ -250,10 +250,10 @@ class BaseXMPP(XMLStream): Create a new Iq stanza with a given Id and from JID. Arguments: - id -- An ideally unique ID value for this stanza thread. - Defaults to 0. - ifrom -- The from JID to use for this stanza. - ito -- The destination JID for this stanza. + id -- An ideally unique ID value for this stanza thread. + Defaults to 0. + ifrom -- The from JID to use for this stanza. + ito -- The destination JID for this stanza. itype -- The Iq's type, one of: get, set, result, or error. iquery -- Optional namespace for adding a query element. """ -- cgit v1.2.3