From 4a5cbcfd18de3a9292207af3f58f7a158ebc8351 Mon Sep 17 00:00:00 2001 From: pictuga Date: Wed, 25 Sep 2013 11:10:16 +0200 Subject: [PATCH] Move httplib in common code Needed for error catch --- morss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss.py b/morss.py index c4edbc7..7926a1a 100644 --- a/morss.py +++ b/morss.py @@ -14,6 +14,7 @@ import lxml.builder import feeds +import httplib import urllib2 import socket import chardet @@ -38,7 +39,6 @@ UA_HML = 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.11) Ge PROTOCOL = ['http', 'https', 'ftp'] if 'REQUEST_URI' in os.environ: - import httplib httplib.HTTPConnection.debuglevel = 1 import cgitb