-try:
- from urllib.parse import urlencode, urlparse, parse_qs, ParseResult
-except ImportError:
- from urllib import urlencode
- from urlparse import urlparse, ParseResult
- from urlparse import parse_qs
+from urllib.parse import urlencode, urlparse, parse_qs, ParseResult
+