summaryrefslogtreecommitdiff
path: root/docs/doxygen/doxyxml/text.py
diff options
context:
space:
mode:
authorJosh Morman <jmorman@gnuradio.org>2021-11-24 12:50:06 -0500
committermormj <34754695+mormj@users.noreply.github.com>2021-11-24 14:41:53 -0500
commit0cfb70212d219e8729b7fddb94f393f469665ecd (patch)
tree53889b076b674cdf599da7fd0ca02c27692d9856 /docs/doxygen/doxyxml/text.py
parent166dc18941de6b5bddbab7cd6ef1a9cf48d4d4b4 (diff)
docs: pep8 formatting
Signed-off-by: Josh Morman <jmorman@gnuradio.org>
Diffstat (limited to 'docs/doxygen/doxyxml/text.py')
-rw-r--r--docs/doxygen/doxyxml/text.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/doxygen/doxyxml/text.py b/docs/doxygen/doxyxml/text.py
index dc3d390a7d..36d678e5c1 100644
--- a/docs/doxygen/doxyxml/text.py
+++ b/docs/doxygen/doxyxml/text.py
@@ -10,6 +10,7 @@
Utilities for extracting text from generated classes.
"""
+
def is_string(txt):
if isinstance(txt, str):
return True
@@ -20,11 +21,13 @@ def is_string(txt):
pass
return False
+
def description(obj):
if obj is None:
return None
return description_bit(obj).strip()
+
def description_bit(obj):
if hasattr(obj, 'content'):
contents = [description_bit(item) for item in obj.content]
@@ -37,7 +40,8 @@ def description_bit(obj):
elif is_string(obj):
return obj
else:
- raise Exception('Expecting a string or something with content, content_ or value attribute')
+ raise Exception(
+ 'Expecting a string or something with content, content_ or value attribute')
# If this bit is a paragraph then add one some line breaks.
if hasattr(obj, 'name') and obj.name == 'para':
result += "\n\n"