diff options
author | Lance Stout <lancestout@gmail.com> | 2011-02-14 13:49:43 -0500 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-02-14 13:49:43 -0500 |
commit | 75584d7ad74b284d30164cde0b5efec2c845d207 (patch) | |
tree | e171f1dcd9cd46c5be823cb19233311b49938f70 /sleekxmpp/clientxmpp.py | |
parent | e0f9025e7c6fe51243222aeb684b94eda1a2be5f (diff) | |
download | slixmpp-75584d7ad74b284d30164cde0b5efec2c845d207.tar.gz slixmpp-75584d7ad74b284d30164cde0b5efec2c845d207.tar.bz2 slixmpp-75584d7ad74b284d30164cde0b5efec2c845d207.tar.xz slixmpp-75584d7ad74b284d30164cde0b5efec2c845d207.zip |
Remap old method names in a better way.
This should prevent some reference cycles that will cause garbage
collection issues.
Diffstat (limited to 'sleekxmpp/clientxmpp.py')
-rw-r--r-- | sleekxmpp/clientxmpp.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/sleekxmpp/clientxmpp.py b/sleekxmpp/clientxmpp.py index a1813985..1e860eae 100644 --- a/sleekxmpp/clientxmpp.py +++ b/sleekxmpp/clientxmpp.py @@ -68,13 +68,6 @@ class ClientXMPP(BaseXMPP): """ BaseXMPP.__init__(self, 'jabber:client') - # To comply with PEP8, method names now use underscores. - # Deprecated method names are re-mapped for backwards compatibility. - self.updateRoster = self.update_roster - self.delRosterItem = self.del_roster_item - self.getRoster = self.get_roster - self.registerFeature = self.register_feature - self.set_jid(jid) self.password = password self.escape_quotes = escape_quotes @@ -439,3 +432,11 @@ class ClientXMPP(BaseXMPP): iq.reply() iq.enable('roster') iq.send() + + +# To comply with PEP8, method names now use underscores. +# Deprecated method names are re-mapped for backwards compatibility. +ClientXMPP.updateRoster = ClientXMPP.update_roster +ClientXMPP.delRosterItem = ClientXMPP.del_roster_item +ClientXMPP.getRoster = ClientXMPP.get_roster +ClientXMPP.registerFeature = ClientXMPP.register_feature |