Commit 059799bb authored by louiz’'s avatar louiz’

Remove some unused things

parent e397f38b
...@@ -74,8 +74,6 @@ class Plugin(BasePlugin): ...@@ -74,8 +74,6 @@ class Plugin(BasePlugin):
if typ == 's': if typ == 's':
try: try:
regex = re.compile(remove)
if replace_all: if replace_all:
new_body = re.sub(remove, put, body) new_body = re.sub(remove, put, body)
else: else:
......
...@@ -21,7 +21,6 @@ Commands ...@@ -21,7 +21,6 @@ Commands
""" """
from poezio.plugin import BasePlugin from poezio.plugin import BasePlugin
from poezio import tabs
class Plugin(BasePlugin): class Plugin(BasePlugin):
def init(self): def init(self):
......
...@@ -42,7 +42,6 @@ except ImportError: ...@@ -42,7 +42,6 @@ except ImportError:
from cStringIO import StringIO from cStringIO import StringIO
import codecs import codecs
import locale
import logging import logging
import os import os
import re import re
......
...@@ -30,6 +30,6 @@ c = ["b", "c", "d", "f", "g", "h", "j", "k", "m", "l", "n", "p", "r", "s", "t", ...@@ -30,6 +30,6 @@ c = ["b", "c", "d", "f", "g", "h", "j", "k", "m", "l", "n", "p", "r", "s", "t",
def gen_nick(size): def gen_nick(size):
res = '' res = ''
for i in range(size): for _ in range(size):
res += '%s%s' % (choice(c), choice(s)) res += '%s%s' % (choice(c), choice(s))
return res return res
...@@ -18,8 +18,6 @@ log = logging.getLogger(__name__) ...@@ -18,8 +18,6 @@ log = logging.getLogger(__name__)
import string import string
import time import time
import weakref
from datetime import datetime, timedelta
from xml.etree import cElementTree as ET from xml.etree import cElementTree as ET
from poezio.core.structs import Command from poezio.core.structs import Command
......
...@@ -11,7 +11,6 @@ import curses ...@@ -11,7 +11,6 @@ import curses
import collections import collections
from poezio import windows from poezio import windows
from poezio.common import safeJID
from poezio.decorators import refresh_wrapper from poezio.decorators import refresh_wrapper
from poezio.tabs import Tab from poezio.tabs import Tab
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment