morss: add py2 indication

master
pictuga 2018-11-11 16:07:25 +01:00
parent 9b492f310e
commit 399e867c94
1 changed files with 2 additions and 0 deletions

View File

@ -22,11 +22,13 @@ import wsgiref.handlers
from html2text import HTML2Text
try:
# python 2
from Queue import Queue
from httplib import HTTPException
from urllib import quote_plus
from urlparse import urlparse, urljoin, parse_qs
except ImportError:
# python 3
from queue import Queue
from http.client import HTTPException
from urllib.parse import quote_plus