yapf -rip

This commit is contained in:
mathieui 2018-08-09 00:56:49 +02:00
parent ee56589468
commit 24b1a1fe50
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3
3 changed files with 11 additions and 4 deletions

View file

@ -1059,7 +1059,6 @@ class Core:
"""Focus a tab"""
return self.tabs.set_current_tab(tab)
### Opening actions ###
def open_conversation_window(self, jid: JID,

View file

@ -36,7 +36,6 @@ from poezio.decorators import command_args_parser
log = logging.getLogger(__name__)
# getters for tab colors (lambdas, so that they are dynamic)
STATE_COLORS = {
'disconnected': lambda: get_theme().COLOR_TAB_DISCONNECTED,
@ -515,7 +514,11 @@ class ChatTab(Tab):
logs = logger.get_logs(safeJID(self.name).bare, log_nb)
return logs
def log_message(self, txt: str, nickname: str, time: Optional[datetime] = None, typ=1):
def log_message(self,
txt: str,
nickname: str,
time: Optional[datetime] = None,
typ=1):
"""
Log the messages in the archives.
"""

View file

@ -845,7 +845,12 @@ class MucTab(ChatTab):
}
self.add_message(kick_msg, typ=2)
def on_user_leave_groupchat(self, user, jid, status, from_nick, from_room,
def on_user_leave_groupchat(self,
user,
jid,
status,
from_nick,
from_room,
server_initiated=False):
"""
When an user leaves a groupchat