From b47482a07a4ffef2ea4ec46c05f24b83648775c9 Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Wed, 21 Mar 2012 23:55:38 +1300 Subject: [PATCH] removed useless imports and debug code --- plugins/urlparse.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/plugins/urlparse.py b/plugins/urlparse.py index f3cabed..088bc85 100755 --- a/plugins/urlparse.py +++ b/plugins/urlparse.py @@ -1,8 +1,5 @@ from util import hook, http, urlnorm -import urllib -from urllib2 import urlopen, Request, HTTPError import re -import BeautifulSoup titler = re.compile(r'(?si)(.+?)'); @@ -15,7 +12,6 @@ def parse(url): url = "http://" + url try: # get the title - print url request = http.open(url) real_url = request.geturl() text = request.read()