summaryrefslogtreecommitdiff
path: root/gr-utils/blocktool/cli.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/blocktool/cli.py
parent1bfc6b439dbcdc467bbbed43a9fd71b49524c348 (diff)
utils: pep8 formatting
Signed-off-by: Josh Morman <jmorman@gnuradio.org>
Diffstat (limited to 'gr-utils/blocktool/cli.py')
-rw-r--r--gr-utils/blocktool/cli.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-utils/blocktool/cli.py b/gr-utils/blocktool/cli.py
index 2f298df472..295f088d93 100644
--- a/gr-utils/blocktool/cli.py
+++ b/gr-utils/blocktool/cli.py
@@ -83,7 +83,7 @@ def json_generator(parser, **kwargs):
header = parser.filename.split('.')[0]
block = parser.modname.split('-')[-1]
if kwargs['output']:
- json_file = os.path.join('.', block+'_'+header + '.json')
+ json_file = os.path.join('.', block + '_' + header + '.json')
with open(json_file, 'w') as _file:
json.dump(parser.parsed_data, _file, indent=4)
else:
@@ -117,7 +117,7 @@ def parse_directory(**kwargs):
json_generator(parse_dir, **kwargs)
except:
logging.basicConfig(level=logging.DEBUG,
- filename=os.path.join('.', dir_name+'_log.out'))
+ filename=os.path.join('.', dir_name + '_log.out'))
logging.exception(
'Log for Exception raised for the header: {}\n'.format(header))
click.secho('Parsing unsuccessful: {}'.format(