]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/conf: add blank lines before class/func definitions
authorKefu Chai <kchai@redhat.com>
Fri, 20 Nov 2020 03:07:47 +0000 (11:07 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 20 Nov 2020 04:59:22 +0000 (12:59 +0800)
this change silences flake8 warnings like:

expected 2 blank lines after class or function definition, found 1
[E305]

Signed-off-by: Kefu Chai <kchai@redhat.com>
doc/conf.py

index 208a2640ae5a6c4021c96ea9c9d5bc35e3318f44..2c285811c9135a73f2b80968a5b9ae9d8a07cc81 100644 (file)
@@ -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: