From 6e13b8b73572f9c0ac9b5c683b98a475afbeab38 Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 15 Aug 2018 13:13:17 +0200 Subject: yapf -rip on plugins --- plugins/stoi.py | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'plugins/stoi.py') diff --git a/plugins/stoi.py b/plugins/stoi.py index f3881879..04d84881 100644 --- a/plugins/stoi.py +++ b/plugins/stoi.py @@ -23,18 +23,21 @@ import string from poezio import xhtml import random -char_we_dont_want = string.punctuation+' ’„“”…«»' +char_we_dont_want = string.punctuation + ' ’„“”…«»' + class Plugin(BasePlugin): def init(self): for tab_type in (tabs.MucTab, tabs.PrivateTab, tabs.ConversationTab): - self.api.add_tab_command(tab_type, 'stoi', - handler=self.stoi, - help="Repeats the last word of the last " - "message in the conversation, and " - "use it in an annoying “C’est toi " - "le” sentence.", - short='C’est toi le stoi.') + self.api.add_tab_command( + tab_type, + 'stoi', + handler=self.stoi, + help="Repeats the last word of the last " + "message in the conversation, and " + "use it in an annoying “C’est toi " + "le” sentence.", + short='C’est toi le stoi.') def stoi(self, args): messages = self.api.get_conversation_messages() @@ -55,4 +58,3 @@ class Plugin(BasePlugin): else: msg = intro + ('le %s' % last_word) self.api.send_message(msg) - -- cgit v1.2.3