From 48b70f28df652d61b035690329fb1a2611d79786 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 26 Feb 2021 17:57:32 +0800 Subject: [PATCH] mgr/prometheus: flake8 cleanups Signed-off-by: Kefu Chai --- src/pybind/mgr/prometheus/module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/prometheus/module.py b/src/pybind/mgr/prometheus/module.py index 771284d4f4bc..ea4b59c24398 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 -- 2.47.3