morss: add py2 indication
This commit is contained in:
		@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user