remove some useless imports

This commit is contained in:
Ryan Hitchman 2010-03-11 16:39:28 -07:00
parent 1e6c08fb30
commit 4e0da10b37
7 changed files with 1 additions and 20 deletions

View File

@ -1,4 +1,3 @@
import sys
import re
import socket
import time

View File

@ -1,10 +1,8 @@
import collections
import glob
import os
import Queue
import re
import sys
import thread
import traceback

View File

@ -1,8 +1,6 @@
import urllib2
import re
from lxml import html
from util import hook

View File

@ -1,7 +1,6 @@
from lxml import html
import re
import urllib2
import sys
from util import hook

View File

@ -1,16 +1,8 @@
import os
import re
from util import hook
@hook.sieve
def sieve_suite(bot, input, func, kind, args):
events = args.get('events', ['PRIVMSG'])
if input.command not in events and '*' not in events:
return None
if input.command == 'PRIVMSG' and input.nick.lower()[-3:] == 'bot' \
and args.get('ignorebots', True):
return None
@ -25,8 +17,5 @@ def sieve_suite(bot, input, func, kind, args):
denied_channels = map(unicode.lower, acl['allow-except'])
if input.chan.lower() in denied_channels:
return None
# input.inp_unstripped = ' '.join(input.re.groups())
# input.inp = input.inp_unstripped.strip()
return input

View File

@ -1,5 +1,4 @@
import inspect
import traceback
def _hook_add(func, add, name=''):

View File

@ -27,7 +27,6 @@
#SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import datetime
import time
def timesince(d, now=None):