]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/script/gen_state_diagram: wrap lines which is over 80 chars 38183/head
authorKefu Chai <kchai@redhat.com>
Thu, 19 Nov 2020 08:59:45 +0000 (16:59 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 19 Nov 2020 13:05:14 +0000 (21:05 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
doc/scripts/gen_state_diagram.py

index 481160901a9f52d97236366c073c7ab292ce0c20..b084f8a742abb4fb4bd5d06def18968dedd1337c 100755 (executable)
@@ -85,13 +85,19 @@ class StateMachineRenderer(object):
         ])
 
     def __str__(self):
-        return "-------------------\n\nstates: %s\n\n machines: %s\n\n edges: %s\n\n context %s\n\n state_contents %s\n\n--------------------" % (
-            self.states,
-            self.machines,
-            self.edges,
-            self.context,
-            self.state_contents
-            )
+        return f'''-------------------
+
+ states: {self.states}
+
+ machines: {self.machines}
+
+ edges: {self.edges}
+
+ context: {self.context}
+
+ state_contents: {self.state_contents}
+
+--------------------'''
 
     def read_input(self, input_lines):
         previous_line = None