url_utils.py 677B

123456789101112131415161718192021222324252627282930
  1. from sys import version_info
  2. if version_info[0] == 2:
  3. from urllib import quote, quote_plus, unquote, urlencode
  4. from urlparse import parse_qs, parse_qsl, urljoin, urlparse, urlunparse, ParseResult
  5. else:
  6. from urllib.parse import (
  7. parse_qs,
  8. parse_qsl,
  9. quote,
  10. quote_plus,
  11. unquote,
  12. urlencode,
  13. urljoin,
  14. urlparse,
  15. urlunparse,
  16. ParseResult
  17. )
  18. __export__ = (parse_qs,
  19. parse_qsl,
  20. quote,
  21. quote_plus,
  22. unquote,
  23. urlencode,
  24. urljoin,
  25. urlparse,
  26. urlunparse,
  27. ParseResult)