From 69d58eede2e9bf83aa1ed1d8fcf956efde494726 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 3 Oct 2018 13:22:37 +0100 Subject: Move src/Utils.py in to src/utils/, splitting functionality out in to modules of related functionality --- modules/title.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/title.py') diff --git a/modules/title.py b/modules/title.py index 6ec5c6d8..34b539d1 100644 --- a/modules/title.py +++ b/modules/title.py @@ -1,10 +1,10 @@ import re -from src import ModuleManager, Utils +from src import ModuleManager, utils REGEX_URL = re.compile("https?://\S+", re.I) class Module(ModuleManager.BaseModule): - @Utils.hook("received.command.title|t", usage="[URL]") + @utils.hook("received.command.title|t", usage="[URL]") def title(self, event): """ :help: Get the title of a URL @@ -20,7 +20,7 @@ class Module(ModuleManager.BaseModule): if not url: event["stderr"].write("No URL provided/found.") return - soup = Utils.get_url(url, soup=True) + soup = utils.http.get_url(url, soup=True) if not soup: event["stderr"].write("Failed to get URL.") return -- cgit v1.3.1-10-gc9f91