From 12ede4d3019a611b3b58d245d65c52bc01f37046 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 13 Jan 2018 15:33:19 +0100 Subject: yapf -ir --- poezio/tabs/basetabs.py | 8 ++++---- poezio/tabs/conversationtab.py | 4 +--- poezio/tabs/muctab.py | 4 ++-- 3 files changed, 7 insertions(+), 9 deletions(-) (limited to 'poezio/tabs') diff --git a/poezio/tabs/basetabs.py b/poezio/tabs/basetabs.py index 01dedb3a..135c0b84 100644 --- a/poezio/tabs/basetabs.py +++ b/poezio/tabs/basetabs.py @@ -779,11 +779,12 @@ class OneToOneTab(ChatTab): self.register_command( 'close', self.command_unquery, shortdesc='Close the tab.') self.register_command( - 'attention', self.command_attention, + 'attention', + self.command_attention, usage='[message]', shortdesc='Request the attention.', desc='Attention: Request the attention of the contact. Can also ' - 'send a message along with the attention.') + 'send a message along with the attention.') def remote_user_color(self): return dump_tuple(get_theme().COLOR_REMOTE_USER) @@ -854,8 +855,7 @@ class OneToOneTab(ChatTab): nickname=self.core.own_nick, nick_color=get_theme().COLOR_OWN_NICK, identifier=message['id'], - jid=self.core.xmpp.boundjid - ) + jid=self.core.xmpp.boundjid) self.refresh() def check_features(self): diff --git a/poezio/tabs/conversationtab.py b/poezio/tabs/conversationtab.py index 20180f73..ec0d6659 100644 --- a/poezio/tabs/conversationtab.py +++ b/poezio/tabs/conversationtab.py @@ -428,9 +428,7 @@ class DynamicConversationTab(ConversationTab): ConversationTab.__init__(self, core, jid) self.info_header = windows.DynamicConversationInfoWin() self.register_command( - 'unlock', - self.unlock_command, - shortdesc='Deprecated, do nothing.') + 'unlock', self.unlock_command, shortdesc='Deprecated, do nothing.') self.resize() def get_info_header(self): diff --git a/poezio/tabs/muctab.py b/poezio/tabs/muctab.py index 769d7b8a..91d8b986 100644 --- a/poezio/tabs/muctab.py +++ b/poezio/tabs/muctab.py @@ -658,8 +658,8 @@ class MucTab(ChatTab): user.change_nick(new_nick) else: user.change_nick(new_nick) - deterministic = config.get_by_tabname( - 'deterministic_nick_colors', self.name) + deterministic = config.get_by_tabname('deterministic_nick_colors', + self.name) color = config.get_by_tabname(new_nick, 'muc_colors') or None if color or deterministic: user.change_color(color, deterministic) -- cgit v1.2.3