summaryrefslogtreecommitdiff
path: root/doc/tools/makerst.py
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2016-10-30 19:05:14 +0100
committerRémi Verschelde <rverschelde@gmail.com>2016-11-01 00:35:16 +0100
commit817dd7ccbb166b27c93706dffc5c0c0d59fd87f8 (patch)
tree3fddab3a6a9712c5eda14b262523ff186a90c9e9 /doc/tools/makerst.py
parentd4c17700aa2f36f69978beda04e42ff2749de270 (diff)
style: Fix PEP8 blank lines issues in Python files
Done with `autopep8 --select=E3,W3`, fixes: - E301 - Add missing blank line. - E302 - Add missing 2 blank lines. - E303 - Remove extra blank lines. - E304 - Remove blank line following function decorator. - E309 - Add missing blank line. - W391 - Remove trailing blank lines.
Diffstat (limited to 'doc/tools/makerst.py')
-rw-r--r--doc/tools/makerst.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/doc/tools/makerst.py b/doc/tools/makerst.py
index 2f3b9c269d..6b6780ce1e 100644
--- a/doc/tools/makerst.py
+++ b/doc/tools/makerst.py
@@ -24,6 +24,7 @@ def validate_tag(elem, tag):
class_names = []
classes = {}
+
def ul_string(str, ul):
str += "\n"
for i in range(len(str) - 1):
@@ -31,6 +32,7 @@ def ul_string(str, ul):
str += "\n"
return str
+
def make_class_list(class_list, columns):
f = codecs.open('class_list.rst', 'wb', 'utf-8')
@@ -343,7 +345,6 @@ def make_heading(title, underline):
return title + '\n' + underline * len(title) + "\n\n"
-
def make_rst_class(node):
name = node.attrib['name']
@@ -375,7 +376,6 @@ def make_rst_class(node):
else:
inh = None
-
f.write("\n\n")
inherited = []
@@ -436,7 +436,6 @@ def make_rst_class(node):
f.write(sep)
f.write('\n')
-
events = node.find('signals')
if events != None and len(list(events)) > 0:
f.write(make_heading('Signals', '-'))
@@ -516,4 +515,3 @@ class_names.sort()
for cn in class_names:
c = classes[cn]
make_rst_class(c)
-