summaryrefslogtreecommitdiff
path: root/gr-utils/modtool/cli/rm.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/rm.py
parent1bfc6b439dbcdc467bbbed43a9fd71b49524c348 (diff)
utils: pep8 formatting
Signed-off-by: Josh Morman <jmorman@gnuradio.org>
Diffstat (limited to 'gr-utils/modtool/cli/rm.py')
-rw-r--r--gr-utils/modtool/cli/rm.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/gr-utils/modtool/cli/rm.py b/gr-utils/modtool/cli/rm.py
index 30eadb5052..5f86c62f24 100644
--- a/gr-utils/modtool/cli/rm.py
+++ b/gr-utils/modtool/cli/rm.py
@@ -23,15 +23,18 @@ def cli(**kwargs):
""" Remove block (delete files and remove Makefile entries) """
kwargs['cli'] = True
self = ModToolRemove(**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_pattern(self)
run(self)
+
def get_pattern(self):
""" Returns the regex pattern for block(s) to be removed """
if self.info['pattern'] is None:
block_candidates = get_block_candidates()
with SequenceCompleter(block_candidates):
- self.info['pattern'] = cli_input('Which blocks do you want to delete? (Regex): ')
+ self.info['pattern'] = cli_input(
+ 'Which blocks do you want to delete? (Regex): ')
if not self.info['pattern'] or self.info['pattern'].isspace():
self.info['pattern'] = '.'