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/figlet.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/figlet.py') diff --git a/plugins/figlet.py b/plugins/figlet.py index 6e82381b..b8fcb813 100644 --- a/plugins/figlet.py +++ b/plugins/figlet.py @@ -14,6 +14,7 @@ Say something in a Chat tab. from poezio.plugin import BasePlugin import subprocess + class Plugin(BasePlugin): def init(self): self.api.add_event_handler('muc_say', self.figletize) @@ -21,6 +22,7 @@ class Plugin(BasePlugin): self.api.add_event_handler('private_say', self.figletize) def figletize(self, msg, tab): - process = subprocess.Popen(['figlet', '--', msg['body']], stdout=subprocess.PIPE) + process = subprocess.Popen( + ['figlet', '--', msg['body']], stdout=subprocess.PIPE) result = process.communicate()[0].decode('utf-8') msg['body'] = result -- cgit v1.2.3