diff options
author | mathieui <mathieui@mathieui.net> | 2018-08-15 13:13:17 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2018-08-15 13:13:17 +0200 |
commit | 6e13b8b73572f9c0ac9b5c683b98a475afbeab38 (patch) | |
tree | 7dae86588339a8cf144b2d98c9280f28646341a9 /plugins/autocorrect.py | |
parent | d1b624753bb5371cf287cc9d86bb685593a99315 (diff) | |
download | poezio-6e13b8b73572f9c0ac9b5c683b98a475afbeab38.tar.gz poezio-6e13b8b73572f9c0ac9b5c683b98a475afbeab38.tar.bz2 poezio-6e13b8b73572f9c0ac9b5c683b98a475afbeab38.tar.xz poezio-6e13b8b73572f9c0ac9b5c683b98a475afbeab38.zip |
yapf -rip on plugins
Diffstat (limited to 'plugins/autocorrect.py')
-rw-r--r-- | plugins/autocorrect.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/plugins/autocorrect.py b/plugins/autocorrect.py index 32611483..6e83436d 100644 --- a/plugins/autocorrect.py +++ b/plugins/autocorrect.py @@ -49,7 +49,10 @@ from poezio.plugin import BasePlugin import re allowed_separators = '/#!:;' -sed_re = re.compile('^([sr])(?P<sep>[%s])(.+?)(?P=sep)(.*?)((?P=sep)|(?P=sep)g)?$' % allowed_separators) +sed_re = re.compile( + '^([sr])(?P<sep>[%s])(.+?)(?P=sep)(.*?)((?P=sep)|(?P=sep)g)?$' % + allowed_separators) + class Plugin(BasePlugin): def init(self): @@ -79,8 +82,9 @@ class Plugin(BasePlugin): else: new_body = re.sub(remove, put, body, count=1) except Exception as e: - self.api.information('Invalid regex for the autocorrect ' - 'plugin: %s' % e, 'Error') + self.api.information( + 'Invalid regex for the autocorrect ' + 'plugin: %s' % e, 'Error') return elif typ == 'r': if replace_all: |