Don't import some nemubot module automatically

This commit is contained in:
nemunaire 2015-01-04 23:57:09 +01:00
commit 06c85289e0
29 changed files with 30 additions and 9 deletions

View file

@ -2,6 +2,7 @@
"""Various network tools (w3m, w3c validator, curl, traceurl, ...)"""
from nemubot.exception import IRCException
from nemubot.hooks import hook
nemubotversion = 3.4
@ -16,8 +17,6 @@ from . import whois
def load(context):
for mod in [isup, page, w3c, watchWebsite, whois]:
mod.IRCException = IRCException
mod.ModuleEvent = ModuleEvent
mod.add_event = add_event
mod.del_event = del_event
mod.save = save

View file

@ -5,6 +5,7 @@ import tempfile
import urllib
from nemubot import __version__
from nemubot.exception import IRCException
from nemubot.tools import web

View file

@ -2,6 +2,7 @@ import json
import urllib
from nemubot import __version__
from nemubot.exception import IRCException
def validator(url):
"""Run the w3c validator on the given URL

View file

@ -4,6 +4,8 @@ from random import randint
import urllib.parse
from urllib.parse import urlparse
from nemubot.event import ModuleEvent
from nemubot.exception import IRCException
from nemubot.hooks import hook
from nemubot.tools.xmlparser.node import ModuleState

View file

@ -1,6 +1,7 @@
import datetime
import urllib
from nemubot.exception import IRCException
from nemubot.tools.web import getJSON
from more import Response