summaryrefslogtreecommitdiff
path: root/gr-utils/modtool/cli/update.py
diff options
context:
space:
mode:
authorJosh Morman <jmorman@gnuradio.org>2021-11-24 12:43:14 -0500
committermormj <34754695+mormj@users.noreply.github.com>2021-11-24 14:41:53 -0500
commite6f61fba108fb40ad8103ef4fadbe507932695ab (patch)
tree354a7a48dc48f06f448ff842329074a50b3fca5c /gr-utils/modtool/cli/update.py
parent1bfc6b439dbcdc467bbbed43a9fd71b49524c348 (diff)
utils: pep8 formatting
Signed-off-by: Josh Morman <jmorman@gnuradio.org>
Diffstat (limited to 'gr-utils/modtool/cli/update.py')
-rw-r--r--gr-utils/modtool/cli/update.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/gr-utils/modtool/cli/update.py b/gr-utils/modtool/cli/update.py
index 70a7185e7d..cb45828ed1 100644
--- a/gr-utils/modtool/cli/update.py
+++ b/gr-utils/modtool/cli/update.py
@@ -26,10 +26,12 @@ def cli(**kwargs):
""" Update the XML bindings to YAML bindings """
kwargs['cli'] = True
self = ModToolUpdate(**kwargs)
- click.secho("GNU Radio module name identified: " + self.info['modname'], fg='green')
+ click.secho("GNU Radio module name identified: " +
+ self.info['modname'], fg='green')
get_blockname(self)
run(self)
+
def get_blockname(self):
""" Returns the blockname for block to be updated """
if self.info['complete']:
@@ -37,11 +39,12 @@ def get_blockname(self):
block_candidates = get_xml_candidates()
if self.info['blockname'] is None:
with SequenceCompleter(block_candidates):
- self.info['blockname'] = cli_input('Which block do you wish to update? : ')
+ self.info['blockname'] = cli_input(
+ 'Which block do you wish to update? : ')
if not self.info['blockname'] or self.info['blockname'].isspace():
raise ModToolException('Block name not specified!')
if self.info['blockname'] not in block_candidates:
choices = [x for x in block_candidates if self.info['blockname'] in x]
if len(choices) > 0:
- click.secho("Suggested alternatives: "+str(choices), fg='yellow')
+ click.secho("Suggested alternatives: " + str(choices), fg='yellow')
raise ModToolException("The XML bindings does not exists!")