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

View file

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

View file

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

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

View file

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

View file

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