mirror of
https://github.com/ceph/ceph
synced 2025-01-02 00:52:22 +00:00
Merge pull request #26743 from votdev/cleanup
mgr/dashboard: Cleanup Python code Reviewed-by: Ernesto Puerta <epuertat@redhat.com> Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com> Reviewed-by: Tatjana Dehler <tdehler@suse.com>
This commit is contained in:
commit
b954e3d8b1
@ -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
|
||||
|
@ -1,6 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# pylint: disable=too-many-branches
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from copy import deepcopy
|
||||
|
@ -1,7 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import cherrypy
|
||||
|
||||
from . import ApiController, RESTController, Endpoint, ReadPermission, Task
|
||||
|
@ -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
|
||||
|
@ -3,7 +3,6 @@ from __future__ import absolute_import
|
||||
|
||||
import json
|
||||
|
||||
|
||||
from . import ApiController, Endpoint, BaseController
|
||||
from .. import mgr
|
||||
from ..security import Permission, Scope
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user