summaryrefslogtreecommitdiff
path: root/plugins/autocorrect.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/autocorrect.py')
-rw-r--r--plugins/autocorrect.py10
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: