Mercurial > libervia-backend
diff src/plugins/plugin_xep_0085.py @ 1565:d86685c0c019
plugin XEP-0085: renamed "__xxx" methods to "_xxx"
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 06 Nov 2015 17:09:45 +0100 |
parents | 075a63180eab |
children | d17772b0fe22 |
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0085.py Fri Nov 06 17:09:42 2015 +0100 +++ b/src/plugins/plugin_xep_0085.py Fri Nov 06 17:09:45 2015 +0100 @@ -184,7 +184,7 @@ pass # send our next "composing" states to any MUC and to the contacts who enabled the feature - self.__chatStateInit(from_jid, message.getAttribute("type"), profile) + self._chatStateInit(from_jid, message.getAttribute("type"), profile) state_list = [child.name for child in message.elements() if message.getAttribute("type") in MESSAGE_TYPES @@ -214,7 +214,7 @@ # launch the chat state machine (init the timer) if self._isMUC(to_jid, profile): to_jid = to_jid.userhostJID() - self.__chatStateActive(to_jid, mess_data["type"], profile) + self._chatStateActive(to_jid, mess_data["type"], profile) except StopIteration: if "chat_state" in mess_data["extra"]: state = mess_data["extra"].pop("chat_state") @@ -266,7 +266,7 @@ # wait for the first message before sending states return False - def __chatStateInit(self, to_jid, mess_type, profile): + def _chatStateInit(self, to_jid, mess_type, profile): """ Data initialization for the chat state machine. @@ -282,7 +282,7 @@ mess_type, profile) self.map[profile][to_jid] = machine - def __chatStateActive(self, to_jid, mess_type, profile_key): + def _chatStateActive(self, to_jid, mess_type, profile_key): """ Launch the chat state machine on "active" state. @@ -293,7 +293,7 @@ profile = self.host.memory.getProfileName(profile_key) if profile is None: raise exceptions.ProfileUnknownError - self.__chatStateInit(to_jid, mess_type, profile) + self._chatStateInit(to_jid, mess_type, profile) self.map[profile][to_jid]._onEvent("active") def chatStateComposing(self, to_jid_s, profile_key):