summaryrefslogtreecommitdiff
path: root/plugins/rstrip.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2018-08-15 13:13:17 +0200
committermathieui <mathieui@mathieui.net>2018-08-15 13:13:17 +0200
commit6e13b8b73572f9c0ac9b5c683b98a475afbeab38 (patch)
tree7dae86588339a8cf144b2d98c9280f28646341a9 /plugins/rstrip.py
parentd1b624753bb5371cf287cc9d86bb685593a99315 (diff)
downloadpoezio-6e13b8b73572f9c0ac9b5c683b98a475afbeab38.tar.gz
poezio-6e13b8b73572f9c0ac9b5c683b98a475afbeab38.tar.bz2
poezio-6e13b8b73572f9c0ac9b5c683b98a475afbeab38.tar.xz
poezio-6e13b8b73572f9c0ac9b5c683b98a475afbeab38.zip
yapf -rip on plugins
Diffstat (limited to 'plugins/rstrip.py')
-rw-r--r--plugins/rstrip.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/rstrip.py b/plugins/rstrip.py
index 3661cf2a..efbbe9d4 100644
--- a/plugins/rstrip.py
+++ b/plugins/rstrip.py
@@ -3,6 +3,7 @@ Once loaded, every line of your messages will be stripped of their trailing spac
"""
from poezio.plugin import BasePlugin
+
class Plugin(BasePlugin):
def init(self):
self.api.add_event_handler('muc_say', self.rstrip)
@@ -10,4 +11,5 @@ class Plugin(BasePlugin):
self.api.add_event_handler('private_say', self.rstrip)
def rstrip(self, msg, tab):
- msg['body'] = '\n'.join(line.rstrip() for line in msg['body'].split('\n'))
+ msg['body'] = '\n'.join(
+ line.rstrip() for line in msg['body'].split('\n'))