Move httplib in common code

Needed for error catch
master
pictuga 2013-09-25 11:10:16 +02:00
parent 3fd34ff1a6
commit 4a5cbcfd18
1 changed files with 1 additions and 1 deletions

View File

@ -14,6 +14,7 @@ import lxml.builder
import feeds import feeds
import httplib
import urllib2 import urllib2
import socket import socket
import chardet 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'] PROTOCOL = ['http', 'https', 'ftp']
if 'REQUEST_URI' in os.environ: if 'REQUEST_URI' in os.environ:
import httplib
httplib.HTTPConnection.debuglevel = 1 httplib.HTTPConnection.debuglevel = 1
import cgitb import cgitb