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:
Sebastian Wagner 2019-03-07 14:14:51 +01:00 committed by GitHub
commit b954e3d8b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 0 additions and 7 deletions

View File

@ -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

View File

@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-
# pylint: disable=too-many-branches
from __future__ import absolute_import
from copy import deepcopy

View File

@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
import cherrypy
from . import ApiController, RESTController, Endpoint, ReadPermission, Task

View File

@ -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

View File

@ -3,7 +3,6 @@ from __future__ import absolute_import
import json
from . import ApiController, Endpoint, BaseController
from .. import mgr
from ..security import Permission, Scope

View File

@ -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

View File

@ -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