aboutsummaryrefslogtreecommitdiff
path: root/source/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'source/utils.py')
-rwxr-xr-xsource/utils.py6
1 files changed, 1 insertions, 5 deletions
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
bgstack15