summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream
diff options
context:
space:
mode:
authorAnton Ryzhov <anton@ryzhov.me>2013-02-22 01:48:03 +0400
committerAnton Ryzhov <anton@ryzhov.me>2013-02-22 01:48:03 +0400
commitd9906756cfc546bd182688fdcaeb0aa8fe96e6dd (patch)
treecdb944a57b37d37854329bf9a682a0356fa48368 /sleekxmpp/xmlstream
parent8c763fcf43b2690c4f02a9f577fc2d6d72917ee2 (diff)
downloadslixmpp-d9906756cfc546bd182688fdcaeb0aa8fe96e6dd.tar.gz
slixmpp-d9906756cfc546bd182688fdcaeb0aa8fe96e6dd.tar.bz2
slixmpp-d9906756cfc546bd182688fdcaeb0aa8fe96e6dd.tar.xz
slixmpp-d9906756cfc546bd182688fdcaeb0aa8fe96e6dd.zip
Don't use internally deprecated methods
Diffstat (limited to 'sleekxmpp/xmlstream')
-rw-r--r--sleekxmpp/xmlstream/xmlstream.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py
index 3f87df52..289e3a21 100644
--- a/sleekxmpp/xmlstream/xmlstream.py
+++ b/sleekxmpp/xmlstream/xmlstream.py
@@ -1015,8 +1015,8 @@ class XMLStream(object):
# and handler classes here.
if name is None:
- name = 'add_handler_%s' % self.getNewId()
- self.registerHandler(XMLCallback(name, MatchXMLMask(mask), pointer,
+ name = 'add_handler_%s' % self.new_id()
+ self.register_handler(XMLCallback(name, MatchXMLMask(mask), pointer,
once=disposable, instream=instream))
def register_handler(self, handler, before=None, after=None):