1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-28 06:04:17 +01:00
svtplay-dl/lib/svtplay_dl/utils/urllib.py

15 lines
509 B
Python
Raw Normal View History

# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
# Pylint does not seem to handle conditional imports
# pylint: disable=F0401
# pylint: disable=W0611
from __future__ import absolute_import
2013-12-30 01:35:08 +01:00
from svtplay_dl.utils import is_py3
if is_py3:
# pylint: disable=E0611
2015-03-07 10:42:48 +01:00
from urllib.parse import quote, unquote_plus, quote_plus, urlparse, parse_qs, urljoin
else:
2015-08-31 20:35:05 +02:00
from urllib import quote, unquote_plus, quote_plus
from urlparse import urlparse, parse_qs, urljoin