From b4ee6edb8a9be1f6e4ddc06bc39f8d29dd317ad0 Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Sun, 22 Apr 2012 10:50:37 +0200 Subject: Minor refactoring with pylint. --- source/utils.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'source/utils.py') diff --git a/source/utils.py b/source/utils.py index d6365073..0928160a 100755 --- a/source/utils.py +++ b/source/utils.py @@ -51,11 +51,7 @@ import BaseHTTPServer from BeautifulSoup import BeautifulSoup from datetime import datetime -from string import punctuation from collections import Counter -from collections import OrderedDict - -from StringIO import StringIO import os import ConfigParser @@ -116,7 +112,7 @@ def detect_url_errors(list_of_urls): urllib2.urlopen(req) except urllib2.HTTPError, e: # server couldn't fulfill the request - errors.append((url, e.code, \ + errors.append((url, e.code, \ BaseHTTPServer.BaseHTTPRequestHandler.responses[e.code][1])) except urllib2.URLError, e: # failed to reach the server -- cgit