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 re
import socket import socket
import time import time

View File

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

View File

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

View File

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

View File

@ -1,16 +1,8 @@
import os
import re
from util import hook from util import hook
@hook.sieve @hook.sieve
def sieve_suite(bot, input, func, kind, args): 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' \ if input.command == 'PRIVMSG' and input.nick.lower()[-3:] == 'bot' \
and args.get('ignorebots', True): and args.get('ignorebots', True):
return None return None
@ -26,7 +18,4 @@ def sieve_suite(bot, input, func, kind, args):
if input.chan.lower() in denied_channels: if input.chan.lower() in denied_channels:
return None return None
# input.inp_unstripped = ' '.join(input.re.groups())
# input.inp = input.inp_unstripped.strip()
return input return input

View File

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

View File

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