diff options
author | Lance Stout <lancestout@gmail.com> | 2013-02-21 13:55:34 -0800 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2013-02-21 13:55:34 -0800 |
commit | 58f5e4702b143208bc80f8a507b358f2c2b1745d (patch) | |
tree | cdb944a57b37d37854329bf9a682a0356fa48368 /sleekxmpp/xmlstream/xmlstream.py | |
parent | 8c763fcf43b2690c4f02a9f577fc2d6d72917ee2 (diff) | |
parent | d9906756cfc546bd182688fdcaeb0aa8fe96e6dd (diff) | |
download | slixmpp-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 'sleekxmpp/xmlstream/xmlstream.py')
-rw-r--r-- | sleekxmpp/xmlstream/xmlstream.py | 4 |
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): |