From 399e867c943e44eab7d750276901e8330565b517 Mon Sep 17 00:00:00 2001 From: pictuga Date: Sun, 11 Nov 2018 16:07:25 +0100 Subject: [PATCH] morss: add py2 indication --- morss/morss.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/morss/morss.py b/morss/morss.py index c5924ce..588da17 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -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