remove some useless imports
This commit is contained in:
parent
1e6c08fb30
commit
4e0da10b37
|
@ -1,4 +1,3 @@
|
|||
import sys
|
||||
import re
|
||||
import socket
|
||||
import time
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
import collections
|
||||
import glob
|
||||
import os
|
||||
import Queue
|
||||
import re
|
||||
import sys
|
||||
import thread
|
||||
import traceback
|
||||
|
||||
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
import urllib2
|
||||
import re
|
||||
|
||||
from lxml import html
|
||||
|
||||
from util import hook
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
from lxml import html
|
||||
import re
|
||||
import urllib2
|
||||
import sys
|
||||
|
||||
from util import hook
|
||||
|
||||
|
|
|
@ -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
|
||||
|
@ -26,7 +18,4 @@ def sieve_suite(bot, input, func, kind, args):
|
|||
if input.chan.lower() in denied_channels:
|
||||
return None
|
||||
|
||||
# input.inp_unstripped = ' '.join(input.re.groups())
|
||||
# input.inp = input.inp_unstripped.strip()
|
||||
|
||||
return input
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import inspect
|
||||
import traceback
|
||||
|
||||
|
||||
def _hook_add(func, add, name=''):
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
#SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
import datetime
|
||||
import time
|
||||
|
||||
|
||||
def timesince(d, now=None):
|
||||
|
|
Loading…
Reference in New Issue