2016-11-30 17:43:03 +00:00
|
|
|
from sys import version_info
|
|
|
|
|
|
|
|
if version_info[0] == 2:
|
|
|
|
from urllib import quote, quote_plus, unquote, urlencode
|
2017-10-25 21:56:37 +00:00
|
|
|
from urlparse import parse_qs, parse_qsl, urljoin, urlparse, urlunparse, ParseResult
|
2016-11-30 17:43:03 +00:00
|
|
|
else:
|
|
|
|
from urllib.parse import (
|
2017-10-25 21:56:37 +00:00
|
|
|
parse_qs,
|
2016-11-30 17:43:03 +00:00
|
|
|
parse_qsl,
|
|
|
|
quote,
|
|
|
|
quote_plus,
|
|
|
|
unquote,
|
|
|
|
urlencode,
|
|
|
|
urljoin,
|
|
|
|
urlparse,
|
|
|
|
urlunparse,
|
|
|
|
ParseResult
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2017-10-25 21:56:37 +00:00
|
|
|
__export__ = (parse_qs,
|
|
|
|
parse_qsl,
|
2016-11-30 17:43:03 +00:00
|
|
|
quote,
|
|
|
|
quote_plus,
|
|
|
|
unquote,
|
|
|
|
urlencode,
|
|
|
|
urljoin,
|
|
|
|
urlparse,
|
|
|
|
urlunparse,
|
|
|
|
ParseResult)
|