Remove useless obscure cgi code

master
pictuga 2015-04-07 09:49:44 +08:00
parent 131ba09207
commit 2f86a2a44b
1 changed files with 2 additions and 9 deletions

View File

@ -24,14 +24,14 @@ from html2text import HTML2Text
try: try:
from Queue import Queue from Queue import Queue
from httplib import HTTPConnection, HTTPException from httplib import HTTPException
from urllib2 import build_opener from urllib2 import build_opener
from urllib2 import HTTPError from urllib2 import HTTPError
from urllib import quote_plus from urllib import quote_plus
from urlparse import urlparse, urljoin, parse_qs from urlparse import urlparse, urljoin, parse_qs
except ImportError: except ImportError:
from queue import Queue from queue import Queue
from http.client import HTTPConnection, HTTPException from http.client import HTTPException
from urllib.request import build_opener from urllib.request import build_opener
from urllib.error import HTTPError from urllib.error import HTTPError
from urllib.parse import quote_plus from urllib.parse import quote_plus
@ -57,13 +57,6 @@ MIMETYPE = {
PROTOCOL = ['http', 'https', 'ftp'] PROTOCOL = ['http', 'https', 'ftp']
if 'SCRIPT_NAME' in os.environ:
HTTPConnection.debuglevel = 1
import cgitb
cgitb.enable()
def filterOptions(options): def filterOptions(options):
return options return options