From 3c7ee45666f2ecaafa6bb42d7c4d27a93dd2514a Mon Sep 17 00:00:00 2001 From: Volker Theile Date: Mon, 4 Mar 2019 17:20:32 +0100 Subject: [PATCH] mgr/dashboard: Cleanup Python code Signed-off-by: Volker Theile --- src/pybind/mgr/dashboard/controllers/__init__.py | 1 - src/pybind/mgr/dashboard/controllers/iscsi.py | 1 - src/pybind/mgr/dashboard/controllers/pool.py | 1 - src/pybind/mgr/dashboard/controllers/settings.py | 1 - src/pybind/mgr/dashboard/controllers/summary.py | 1 - src/pybind/mgr/dashboard/plugins/lru_cache.py | 1 - src/pybind/mgr/dashboard/plugins/ttl_cache.py | 1 - 7 files changed, 7 deletions(-) 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 b57b1d809ef..4568355d423 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 -- 2.39.5