summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-07-06 09:49:40 +0200
committerlouiz’ <louiz@louiz.org>2016-07-06 09:52:19 +0200
commit059799bb2d3ed2c42de77cbf6a453dff382b2309 (patch)
tree0bbbba464b236dae8d23c198751f67955fde6fc5
parente397f38b47ae16364bf4345e59ad8b6b0703aa5b (diff)
downloadpoezio-059799bb2d3ed2c42de77cbf6a453dff382b2309.tar.gz
poezio-059799bb2d3ed2c42de77cbf6a453dff382b2309.tar.bz2
poezio-059799bb2d3ed2c42de77cbf6a453dff382b2309.tar.xz
poezio-059799bb2d3ed2c42de77cbf6a453dff382b2309.zip
Remove some unused things
-rw-r--r--plugins/autocorrect.py2
-rw-r--r--plugins/csi.py1
-rw-r--r--plugins/gpg/gnupg.py1
-rw-r--r--plugins/random_nick.py2
-rw-r--r--poezio/tabs/basetabs.py2
-rw-r--r--poezio/tabs/listtab.py1
6 files changed, 1 insertions, 8 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
diff --git a/poezio/tabs/basetabs.py b/poezio/tabs/basetabs.py
index 6f0ed7ab..ea5aed6e 100644
--- a/poezio/tabs/basetabs.py
+++ b/poezio/tabs/basetabs.py
@@ -18,8 +18,6 @@ log = logging.getLogger(__name__)
import string
import time
-import weakref
-from datetime import datetime, timedelta
from xml.etree import cElementTree as ET
from poezio.core.structs import Command
diff --git a/poezio/tabs/listtab.py b/poezio/tabs/listtab.py
index ddb8b58e..c99bd3bd 100644
--- a/poezio/tabs/listtab.py
+++ b/poezio/tabs/listtab.py
@@ -11,7 +11,6 @@ import curses
import collections
from poezio import windows
-from poezio.common import safeJID
from poezio.decorators import refresh_wrapper
from poezio.tabs import Tab