2013-04-21 13:42:33 +02:00
|
|
|
# ex:ts=4:sw=4:sts=4:et
|
|
|
|
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
|
|
|
|
2016-04-03 19:06:45 +02:00
|
|
|
# This module is a python2/3 compat glue, we don't use the imports
|
|
|
|
# here.
|
|
|
|
# pylint: disable=unused-import
|
|
|
|
|
2013-04-21 13:42:33 +02:00
|
|
|
# Pylint does not seem to handle conditional imports
|
2016-04-03 19:06:45 +02:00
|
|
|
# pylint: disable=no-name-in-module
|
|
|
|
# pylint: disable=import-error
|
2013-04-21 13:42:33 +02:00
|
|
|
|
|
|
|
from __future__ import absolute_import
|
2016-01-27 19:49:38 +01:00
|
|
|
from svtplay_dl.utils import is_py2
|
|
|
|
if is_py2:
|
|
|
|
from urllib import quote, unquote_plus, quote_plus
|
|
|
|
from urlparse import urlparse, parse_qs, urljoin
|
|
|
|
else:
|
2015-03-07 10:42:48 +01:00
|
|
|
from urllib.parse import quote, unquote_plus, quote_plus, urlparse, parse_qs, urljoin
|