diff --git a/src/pybind/mgr/dashboard/controllers/__init__.py b/src/pybind/mgr/dashboard/controllers/__init__.py index af79f8ac2ab..28f5998e876 100644 --- a/src/pybind/mgr/dashboard/controllers/__init__.py +++ b/src/pybind/mgr/dashboard/controllers/__init__.py @@ -9,7 +9,6 @@ import json import os import pkgutil import sys -from six import add_metaclass if sys.version_info >= (3, 0): from urllib.parse import unquote # pylint: disable=no-name-in-module,import-error diff --git a/src/pybind/mgr/dashboard/controllers/iscsi.py b/src/pybind/mgr/dashboard/controllers/iscsi.py index f6267f76413..f67037cab0b 100644 --- a/src/pybind/mgr/dashboard/controllers/iscsi.py +++ b/src/pybind/mgr/dashboard/controllers/iscsi.py @@ -1,6 +1,5 @@ # -*- coding: utf-8 -*- # pylint: disable=too-many-branches - from __future__ import absolute_import from copy import deepcopy diff --git a/src/pybind/mgr/dashboard/controllers/pool.py b/src/pybind/mgr/dashboard/controllers/pool.py index b20e19842f1..5732674b01a 100644 --- a/src/pybind/mgr/dashboard/controllers/pool.py +++ b/src/pybind/mgr/dashboard/controllers/pool.py @@ -1,7 +1,6 @@ # -*- coding: utf-8 -*- from __future__ import absolute_import - import cherrypy from . import ApiController, RESTController, Endpoint, ReadPermission, Task diff --git a/src/pybind/mgr/dashboard/controllers/settings.py b/src/pybind/mgr/dashboard/controllers/settings.py index 2f2ec3e902e..a484580ee1c 100644 --- a/src/pybind/mgr/dashboard/controllers/settings.py +++ b/src/pybind/mgr/dashboard/controllers/settings.py @@ -4,7 +4,6 @@ from contextlib import contextmanager import cherrypy - from . import ApiController, RESTController from ..settings import Settings as SettingsModule, Options from ..security import Scope diff --git a/src/pybind/mgr/dashboard/controllers/summary.py b/src/pybind/mgr/dashboard/controllers/summary.py index 2571b281cfd..0b2d51e5274 100644 --- a/src/pybind/mgr/dashboard/controllers/summary.py +++ b/src/pybind/mgr/dashboard/controllers/summary.py @@ -3,7 +3,6 @@ from __future__ import absolute_import import json - from . import ApiController, Endpoint, BaseController from .. import mgr from ..security import Permission, Scope diff --git a/src/pybind/mgr/dashboard/plugins/lru_cache.py b/src/pybind/mgr/dashboard/plugins/lru_cache.py index 82ec0c74983..19ad1b85062 100644 --- a/src/pybind/mgr/dashboard/plugins/lru_cache.py +++ b/src/pybind/mgr/dashboard/plugins/lru_cache.py @@ -4,7 +4,6 @@ This is a minimal implementation of lru_cache function. Based on Python 3 functools and backports.functools_lru_cache. """ - from __future__ import absolute_import from functools import wraps diff --git a/src/pybind/mgr/dashboard/plugins/ttl_cache.py b/src/pybind/mgr/dashboard/plugins/ttl_cache.py index 8a7715b10b5..a0698542b43 100644 --- a/src/pybind/mgr/dashboard/plugins/ttl_cache.py +++ b/src/pybind/mgr/dashboard/plugins/ttl_cache.py @@ -3,7 +3,6 @@ This is a minimal implementation of TTL-ed lru_cache function. Based on Python 3 functools and backports.functools_lru_cache. """ - from __future__ import absolute_import from functools import wraps