]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/prometheus: flake8 cleanups
authorKefu Chai <kchai@redhat.com>
Fri, 26 Feb 2021 09:57:32 +0000 (17:57 +0800)
committerSage Weil <sage@newdream.net>
Tue, 16 Mar 2021 13:06:44 +0000 (08:06 -0500)
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 48b70f28df652d61b035690329fb1a2611d79786)

src/pybind/mgr/prometheus/module.py

index f009cb317bd9dc81e3b8079267ca1ef5b38f1424..53e0a98149f44afe82a5995b8c62214043dceceb 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