summaryrefslogtreecommitdiff
path: root/examples/custom_stanzas/custom_stanza_provider.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2013-02-21 13:55:34 -0800
committerLance Stout <lancestout@gmail.com>2013-02-21 13:55:34 -0800
commit58f5e4702b143208bc80f8a507b358f2c2b1745d (patch)
treecdb944a57b37d37854329bf9a682a0356fa48368 /examples/custom_stanzas/custom_stanza_provider.py
parent8c763fcf43b2690c4f02a9f577fc2d6d72917ee2 (diff)
parentd9906756cfc546bd182688fdcaeb0aa8fe96e6dd (diff)
downloadslixmpp-58f5e4702b143208bc80f8a507b358f2c2b1745d.tar.gz
slixmpp-58f5e4702b143208bc80f8a507b358f2c2b1745d.tar.bz2
slixmpp-58f5e4702b143208bc80f8a507b358f2c2b1745d.tar.xz
slixmpp-58f5e4702b143208bc80f8a507b358f2c2b1745d.zip
Merge pull request #224 from anton-ryzhov/no_deprecated_methods_usage
Don't use internally deprecated methods
Diffstat (limited to 'examples/custom_stanzas/custom_stanza_provider.py')
-rwxr-xr-xexamples/custom_stanzas/custom_stanza_provider.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/custom_stanzas/custom_stanza_provider.py b/examples/custom_stanzas/custom_stanza_provider.py
index b0e00247..0ebdb77e 100755
--- a/examples/custom_stanzas/custom_stanza_provider.py
+++ b/examples/custom_stanzas/custom_stanza_provider.py
@@ -51,7 +51,7 @@ class ActionBot(sleekxmpp.ClientXMPP):
# our roster.
self.add_event_handler("session_start", self.start)
- self.registerHandler(
+ self.register_handler(
Callback('Some custom iq',
StanzaPath('iq@type=set/action'),
self._handle_action))