parent
f7d570d4c8
commit
67f5a21019
|
@ -12,10 +12,10 @@ import sqlite3
|
||||||
import time
|
import time
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from urllib2 import BaseHandler, Request, addinfourl, parse_keqv_list, parse_http_list
|
from urllib2 import BaseHandler, Request, addinfourl, parse_keqv_list, parse_http_list, build_opener
|
||||||
import mimetools
|
import mimetools
|
||||||
except ImportError:
|
except ImportError:
|
||||||
from urllib.request import BaseHandler, Request, addinfourl, parse_keqv_list, parse_http_list
|
from urllib.request import BaseHandler, Request, addinfourl, parse_keqv_list, parse_http_list, build_opener
|
||||||
import email
|
import email
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -25,14 +25,12 @@ from html2text import HTML2Text
|
||||||
try:
|
try:
|
||||||
from Queue import Queue
|
from Queue import Queue
|
||||||
from httplib import HTTPException
|
from httplib import HTTPException
|
||||||
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 HTTPException
|
from http.client import HTTPException
|
||||||
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
|
||||||
from urllib.parse import urlparse, urljoin, parse_qs
|
from urllib.parse import urlparse, urljoin, parse_qs
|
||||||
|
|
Loading…
Reference in New Issue