-try:
- from urllib.parse import urlencode, urlparse, parse_qs, ParseResult
-except ImportError:
- from urllib import urlencode
- from urlparse import urlparse, ParseResult
- try:
- from urlparse import parse_qs
- except: # Python <2.6 compatibility
- from cgi import parse_qs
+from urllib.parse import urlencode, urlparse, parse_qs, ParseResult
+