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

Remove some unused things

parent e397f38b
......@@ -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:
......
......@@ -21,7 +21,6 @@ Commands
"""
from poezio.plugin import BasePlugin
from poezio import tabs
class Plugin(BasePlugin):
def init(self):
......
......@@ -42,7 +42,6 @@ except ImportError:
from cStringIO import StringIO
import codecs
import locale
import logging
import os
import re
......
......@@ -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
......@@ -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
......
......@@ -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
......
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