diff options
author | louiz’ <louiz@louiz.org> | 2016-07-06 09:49:40 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2016-07-06 09:52:19 +0200 |
commit | 059799bb2d3ed2c42de77cbf6a453dff382b2309 (patch) | |
tree | 0bbbba464b236dae8d23c198751f67955fde6fc5 /plugins | |
parent | e397f38b47ae16364bf4345e59ad8b6b0703aa5b (diff) | |
download | poezio-059799bb2d3ed2c42de77cbf6a453dff382b2309.tar.gz poezio-059799bb2d3ed2c42de77cbf6a453dff382b2309.tar.bz2 poezio-059799bb2d3ed2c42de77cbf6a453dff382b2309.tar.xz poezio-059799bb2d3ed2c42de77cbf6a453dff382b2309.zip |
Remove some unused things
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/autocorrect.py | 2 | ||||
-rw-r--r-- | plugins/csi.py | 1 | ||||
-rw-r--r-- | plugins/gpg/gnupg.py | 1 | ||||
-rw-r--r-- | plugins/random_nick.py | 2 |
4 files changed, 1 insertions, 5 deletions
diff --git a/plugins/autocorrect.py b/plugins/autocorrect.py index 09e6bf44..32611483 100644 --- a/plugins/autocorrect.py +++ b/plugins/autocorrect.py @@ -74,8 +74,6 @@ class Plugin(BasePlugin): if typ == 's': try: - regex = re.compile(remove) - if replace_all: new_body = re.sub(remove, put, body) else: diff --git a/plugins/csi.py b/plugins/csi.py index efc8e4ab..03a0d394 100644 --- a/plugins/csi.py +++ b/plugins/csi.py @@ -21,7 +21,6 @@ Commands """ from poezio.plugin import BasePlugin -from poezio import tabs class Plugin(BasePlugin): def init(self): diff --git a/plugins/gpg/gnupg.py b/plugins/gpg/gnupg.py index 99bd7d25..8a06156a 100644 --- a/plugins/gpg/gnupg.py +++ b/plugins/gpg/gnupg.py @@ -42,7 +42,6 @@ except ImportError: from cStringIO import StringIO import codecs -import locale import logging import os import re diff --git a/plugins/random_nick.py b/plugins/random_nick.py index 2c2852dc..66d5661f 100644 --- a/plugins/random_nick.py +++ b/plugins/random_nick.py @@ -30,6 +30,6 @@ c = ["b", "c", "d", "f", "g", "h", "j", "k", "m", "l", "n", "p", "r", "s", "t", def gen_nick(size): res = '' - for i in range(size): + for _ in range(size): res += '%s%s' % (choice(c), choice(s)) return res |