mirror of
https://github.com/searxng/searxng.git
synced 2024-11-23 12:31:25 +01:00
d20bba6dc7
Closes #1045
31 lines
677 B
Python
31 lines
677 B
Python
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
|
|
else:
|
|
from urllib.parse import (
|
|
parse_qs,
|
|
parse_qsl,
|
|
quote,
|
|
quote_plus,
|
|
unquote,
|
|
urlencode,
|
|
urljoin,
|
|
urlparse,
|
|
urlunparse,
|
|
ParseResult
|
|
)
|
|
|
|
|
|
__export__ = (parse_qs,
|
|
parse_qsl,
|
|
quote,
|
|
quote_plus,
|
|
unquote,
|
|
urlencode,
|
|
urljoin,
|
|
urlparse,
|
|
urlunparse,
|
|
ParseResult)
|