]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/prometheus: flake8 cleanups 39712/head
authorKefu Chai <kchai@redhat.com>
Fri, 26 Feb 2021 09:57:32 +0000 (17:57 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 26 Feb 2021 11:53:44 +0000 (19:53 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/prometheus/module.py

index 771284d4f4bc4d502ad2b992c18edabacfd90ede..ea4b59c2439888efdacc2dce0356ee22128d6bab 100644 (file)
@@ -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