1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-18 02:10:12 +01:00
searxng/searx/url_utils.py

31 lines
677 B
Python
Raw Normal View History

2016-11-30 18:43:03 +01:00
from sys import version_info
if version_info[0] == 2:
from urllib import quote, quote_plus, unquote, urlencode
from urlparse import parse_qs, parse_qsl, urljoin, urlparse, urlunparse, ParseResult
2016-11-30 18:43:03 +01:00
else:
from urllib.parse import (
parse_qs,
2016-11-30 18:43:03 +01:00
parse_qsl,
quote,
quote_plus,
unquote,
urlencode,
urljoin,
urlparse,
urlunparse,
ParseResult
)
__export__ = (parse_qs,
parse_qsl,
2016-11-30 18:43:03 +01:00
quote,
quote_plus,
unquote,
urlencode,
urljoin,
urlparse,
urlunparse,
ParseResult)