diff options
author | Florent Le Coz <louiz@louiz.org> | 2011-11-20 00:42:13 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2011-11-20 00:42:13 +0100 |
commit | 97f7877ddbd8a83ce18b3b9ebb566a7b7a4c6acb (patch) | |
tree | 1378ceac4dec6bf69d72b18c9a647588fff50363 /src/tabs.py | |
parent | f895d4a2f9f073830e760b06ee250c8495006158 (diff) | |
download | poezio-97f7877ddbd8a83ce18b3b9ebb566a7b7a4c6acb.tar.gz poezio-97f7877ddbd8a83ce18b3b9ebb566a7b7a4c6acb.tar.bz2 poezio-97f7877ddbd8a83ce18b3b9ebb566a7b7a4c6acb.tar.xz poezio-97f7877ddbd8a83ce18b3b9ebb566a7b7a4c6acb.zip |
May improve some performance, but should be unnoticeable.
Diffstat (limited to 'src/tabs.py')
-rw-r--r-- | src/tabs.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/tabs.py b/src/tabs.py index cb3ef520..23d30a8c 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -152,10 +152,10 @@ class Tab(object): @state.setter def state(self, value): if not value in STATE_COLORS: - log.debug("Invalid value for tab state: %s" % value) + log.debug("Invalid value for tab state: %s", value) elif STATE_PRIORITY[value] < STATE_PRIORITY[self._state] and \ value != 'current': - log.debug("Did not set status because of lower priority, asked: %s, kept: %s" % (value, self.state)) + log.debug("Did not set status because of lower priority, asked: %s, kept: %s", (value, self.state)) else: self._state = value @@ -320,7 +320,7 @@ class Tab(object): self.input.on_delete() def __del__(self): - log.debug('------ Closing tab %s' % self.__class__.__name__) + log.debug('------ Closing tab %s', self.__class__.__name__) class ChatTab(Tab): """ @@ -927,7 +927,7 @@ class MucTab(ChatTab): def refresh(self): if self.need_resize: self.resize() - log.debug(' TAB Refresh: %s'%self.__class__.__name__) + log.debug(' TAB Refresh: %s',self.__class__.__name__) self.topic_win.refresh(self.get_single_line_topic()) self.text_win.refresh() self.v_separator.refresh() @@ -1414,7 +1414,7 @@ class PrivateTab(ChatTab): def refresh(self): if self.need_resize: self.resize() - log.debug(' TAB Refresh: %s'%self.__class__.__name__) + log.debug(' TAB Refresh: %s',self.__class__.__name__) self.text_win.refresh() self.info_header.refresh(self.name, self.text_win, self.chatstate) self.info_win.refresh() @@ -1889,7 +1889,7 @@ class RosterInfoTab(Tab): def refresh(self): if self.need_resize: self.resize() - log.debug(' TAB Refresh: %s'%self.__class__.__name__) + log.debug(' TAB Refresh: %s',self.__class__.__name__) self.v_separator.refresh() self.roster_win.refresh(roster) self.contact_info_win.refresh(self.roster_win.get_selected_row()) @@ -2154,7 +2154,7 @@ class ConversationTab(ChatTab): def refresh(self): if self.need_resize: self.resize() - log.debug(' TAB Refresh: %s'%self.__class__.__name__) + log.debug(' TAB Refresh: %s',self.__class__.__name__) self.text_win.refresh() self.upper_bar.refresh(self.get_name(), roster.get_contact_by_jid(self.get_name())) self.info_header.refresh(self.get_name(), roster.get_contact_by_jid(self.get_name()), self.text_win, self.chatstate, ConversationTab.additional_informations) @@ -2269,7 +2269,7 @@ class MucListTab(Tab): def refresh(self): if self.need_resize: self.resize() - log.debug(' TAB Refresh: %s'%self.__class__.__name__) + log.debug(' TAB Refresh: %s',self.__class__.__name__) self.upper_message.refresh() self.list_header.refresh() self.listview.refresh() @@ -2419,7 +2419,7 @@ class SimpleTextTab(Tab): def refresh(self): if self.need_resize: self.resize() - log.debug(' TAB Refresh: %s'%self.__class__.__name__) + log.debug(' TAB Refresh: %s',self.__class__.__name__) self.text_win.refresh() self.refresh_tab_win() self.input.refresh() |