# HG changeset patch # User Goffi # Date 1446826185 -3600 # Node ID d86685c0c019dd5268dbc53225b28993bb72ba29 # Parent 001b62bed67c29cab9d32bac82adcb1cf7f2ae47 plugin XEP-0085: renamed "__xxx" methods to "_xxx" diff -r 001b62bed67c -r d86685c0c019 src/plugins/plugin_xep_0085.py --- 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):