summaryrefslogtreecommitdiff
path: root/poezio/tabs
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2018-01-13 15:33:19 +0100
committermathieui <mathieui@mathieui.net>2018-01-13 15:33:19 +0100
commit12ede4d3019a611b3b58d245d65c52bc01f37046 (patch)
treec723738a7d266fdabea15b1ebcd17fec7cb648f1 /poezio/tabs
parent6fe2f208337db898d370d7a2374b416d998b5b5f (diff)
downloadpoezio-12ede4d3019a611b3b58d245d65c52bc01f37046.tar.gz
poezio-12ede4d3019a611b3b58d245d65c52bc01f37046.tar.bz2
poezio-12ede4d3019a611b3b58d245d65c52bc01f37046.tar.xz
poezio-12ede4d3019a611b3b58d245d65c52bc01f37046.zip
yapf -ir
Diffstat (limited to 'poezio/tabs')
-rw-r--r--poezio/tabs/basetabs.py8
-rw-r--r--poezio/tabs/conversationtab.py4
-rw-r--r--poezio/tabs/muctab.py4
3 files changed, 7 insertions, 9 deletions
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)