management/commands/fetch_data: Locally disable redefined-builtin pylint error (W0622)
In Python 3.3 ConnectionError was added as subclass in python builtins, see PEP3151 or [1] for more details. [1]: https://docs.python.org/3/whatsnew/3.3.html#pep-3151-reworking-the-os-and-io-exception-hierarchy Fixes redefined-builtin (W0622) pylint error. Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>merge-requests/868/head
parent
283b994a67
commit
903b264814
|
@ -23,7 +23,6 @@ disable=
|
||||||
W0107, # unnecessary-pass
|
W0107, # unnecessary-pass
|
||||||
W0201, # attribute-defined-outside-init
|
W0201, # attribute-defined-outside-init
|
||||||
W0621, # redefined-outer-name
|
W0621, # redefined-outer-name
|
||||||
W0622, # redefined-builtin
|
|
||||||
W0703, # broad-except
|
W0703, # broad-except
|
||||||
W1308, # duplicate-string-formatting-argument
|
W1308, # duplicate-string-formatting-argument
|
||||||
W1505, # deprecated-method
|
W1505, # deprecated-method
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
|
|
||||||
from django.core.management.base import BaseCommand, CommandError
|
from django.core.management.base import BaseCommand, CommandError
|
||||||
from requests.exceptions import ConnectionError
|
# Remove this import after Python 3 migration
|
||||||
|
from requests.exceptions import ConnectionError # pylint: disable=W0622
|
||||||
|
|
||||||
from network.base.tasks import fetch_data
|
from network.base.tasks import fetch_data
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue