summaryrefslogtreecommitdiff
path: root/grc/python/Generator.py
diff options
context:
space:
mode:
authorBen Reynwar <ben@reynwar.net>2012-08-14 10:28:23 -0700
committerBen Reynwar <ben@reynwar.net>2012-08-14 10:28:23 -0700
commitfc4d37062c46886d3bc1fb0b6c3626d779be4ecd (patch)
treee69367ce9284b7a91c31899f66d129d2a9bccae6 /grc/python/Generator.py
parent3e46aef392ba9b2e63bbfefefdb7178cc87049ab (diff)
docs: Modified argument formating in python docstrings in grc.
Diffstat (limited to 'grc/python/Generator.py')
-rw-r--r--grc/python/Generator.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/grc/python/Generator.py b/grc/python/Generator.py
index 2a6fe51d5d..f8490227a7 100644
--- a/grc/python/Generator.py
+++ b/grc/python/Generator.py
@@ -35,8 +35,10 @@ class Generator(object):
"""
Initialize the generator object.
Determine the file to generate.
- @param flow_graph the flow graph object
- @param file_path the path to write the file to
+
+ Args:
+ flow_graph: the flow graph object
+ file_path: the path to write the file to
"""
self._flow_graph = flow_graph
self._generate_options = self._flow_graph.get_option('generate_options')
@@ -72,7 +74,9 @@ Add a Misc->Throttle block to your flow graph to avoid CPU congestion.''')
def get_popen(self):
"""
Execute this python flow graph.
- @return a popen object
+
+ Returns:
+ a popen object
"""
#extract the path to the python executable
python_exe = sys.executable
@@ -95,7 +99,9 @@ Add a Misc->Throttle block to your flow graph to avoid CPU congestion.''')
def __str__(self):
"""
Convert the flow graph to python code.
- @return a string of python code
+
+ Returns:
+ a string of python code
"""
title = self._flow_graph.get_option('title') or self._flow_graph.get_option('id').replace('_', ' ').title()
imports = self._flow_graph.get_imports()