morss: add py2 indication
parent
9b492f310e
commit
399e867c94
|
@ -22,11 +22,13 @@ import wsgiref.handlers
|
||||||
from html2text import HTML2Text
|
from html2text import HTML2Text
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
# python 2
|
||||||
from Queue import Queue
|
from Queue import Queue
|
||||||
from httplib import HTTPException
|
from httplib import HTTPException
|
||||||
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:
|
||||||
|
# python 3
|
||||||
from queue import Queue
|
from queue import Queue
|
||||||
from http.client import HTTPException
|
from http.client import HTTPException
|
||||||
from urllib.parse import quote_plus
|
from urllib.parse import quote_plus
|
||||||
|
|
Loading…
Reference in New Issue