aboutsummaryrefslogtreecommitdiff
path: root/source/utils.py
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2012-04-22 10:50:37 +0200
committercedricbonhomme <devnull@localhost>2012-04-22 10:50:37 +0200
commitb4ee6edb8a9be1f6e4ddc06bc39f8d29dd317ad0 (patch)
treed13d1f0a463030b3ca2ad88753719090a6d9de21 /source/utils.py
parentAdded comments. (diff)
downloadnewspipe-b4ee6edb8a9be1f6e4ddc06bc39f8d29dd317ad0.tar.gz
newspipe-b4ee6edb8a9be1f6e4ddc06bc39f8d29dd317ad0.tar.bz2
newspipe-b4ee6edb8a9be1f6e4ddc06bc39f8d29dd317ad0.zip
Minor refactoring with pylint.
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