From: Kefu Chai Date: Fri, 26 Feb 2021 09:57:32 +0000 (+0800) Subject: mgr/prometheus: flake8 cleanups X-Git-Tag: v17.1.0~2710^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=48b70f28df652d61b035690329fb1a2611d79786;p=ceph.git mgr/prometheus: flake8 cleanups Signed-off-by: Kefu Chai --- diff --git a/src/pybind/mgr/prometheus/module.py b/src/pybind/mgr/prometheus/module.py index 771284d4f4b..ea4b59c2439 100644 --- a/src/pybind/mgr/prometheus/module.py +++ b/src/pybind/mgr/prometheus/module.py @@ -2,7 +2,6 @@ import cherrypy from collections import defaultdict from distutils.version import StrictVersion import json -import errno import math import os import re @@ -43,7 +42,8 @@ if cherrypy is not None: def os_exit_noop(status: int) -> None: pass -os._exit = os_exit_noop # type: ignore + +os._exit = os_exit_noop # type: ignore # to access things in class Module from subclass Root. Because # it's a dict, the writer doesn't need to declare 'global' for access