mirror of
https://github.com/httpie/cli.git
synced 2024-12-12 01:20:46 +01:00
19 lines
264 B
Python
19 lines
264 B
Python
|
"""
|
||
|
Python 2/3 compatibility.
|
||
|
|
||
|
"""
|
||
|
#noinspection PyUnresolvedReferences
|
||
|
from requests.compat import (
|
||
|
is_windows,
|
||
|
bytes,
|
||
|
str,
|
||
|
is_py3,
|
||
|
is_py26,
|
||
|
)
|
||
|
|
||
|
try:
|
||
|
from urllib.parse import urlsplit
|
||
|
except ImportError:
|
||
|
from urlparse import urlsplit
|
||
|
|