From: Kefu Chai Date: Fri, 20 Nov 2020 03:07:47 +0000 (+0800) Subject: doc/conf: add blank lines before class/func definitions X-Git-Tag: v16.1.0~439^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=06d0bbc94a9a82d8c81548bd645576bb88000e2a;p=ceph.git doc/conf: add blank lines before class/func definitions this change silences flake8 warnings like: expected 2 blank lines after class or function definition, found 1 [E305] Signed-off-by: Kefu Chai --- diff --git a/doc/conf.py b/doc/conf.py index 208a2640ae5a..2c285811c913 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -133,6 +133,7 @@ def generate_state_diagram(input_paths, output_path): return process + # handles edit-on-github and old version warning display def setup(app): app.add_js_file('js/ceph.js') @@ -144,14 +145,17 @@ def setup(app): 'src/osd/PeeringState.cc'], 'doc/dev/peering_graph.generated.dot')) + # mocking ceph_module offered by ceph-mgr. `ceph_module` is required by # mgr.mgr_module class Dummy(object): def __getattr__(self, _): return lambda *args, **kwargs: None + class Mock(object): __all__ = [] + def __init__(self, *args, **kwargs): pass @@ -164,6 +168,7 @@ class Mock(object): mock.__module__ = __name__ return mock + sys.modules['ceph_module'] = Mock() if build_with_rtd: