Remove some unused things

This commit is contained in:
louiz’ 2016-07-06 09:49:40 +02:00
parent e397f38b47
commit 059799bb2d
6 changed files with 1 additions and 8 deletions

View file

@ -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:

View file

@ -21,7 +21,6 @@ Commands
"""
from poezio.plugin import BasePlugin
from poezio import tabs
class Plugin(BasePlugin):
def init(self):

View file

@ -42,7 +42,6 @@ except ImportError:
from cStringIO import StringIO
import codecs
import locale
import logging
import os
import re

View file

@ -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

View file

@ -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

View file

@ -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