mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 12:15:40 +01:00
5393dc1929
None of these were any real problems, but easier to spot real issues if pylint is a bit quieter. Apart from the pylint overrides being sprinkled over the code base, this commit also fixes occurences of the following issues: - logging-not-lazy - logging-format-interpolation - unused-import - unused-variable
19 lines
609 B
Python
19 lines
609 B
Python
# ex:ts=4:sw=4:sts=4:et
|
|
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
|
|
|
# This module is a python2/3 compat glue, we don't use the imports
|
|
# here.
|
|
# pylint: disable=unused-import
|
|
|
|
# Pylint does not seem to handle conditional imports
|
|
# pylint: disable=no-name-in-module
|
|
# pylint: disable=import-error
|
|
|
|
from __future__ import absolute_import
|
|
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:
|
|
from urllib.parse import quote, unquote_plus, quote_plus, urlparse, parse_qs, urljoin
|