Commit b95695a1 authored by Dimitris Lampridis's avatar Dimitris Lampridis

sw: wrtd-config: make empty line printing compatible with Python2

parent 3e06c9e7
......@@ -37,9 +37,9 @@ def __tstamp_to_str(tstamp):
ret['frac'] >> (32 - 9))
def cmd_sys_info(wrtd, args):
print()
print('')
cmd_sys_time(wrtd, args)
print()
print('')
count = wrtd.get_attr_int32(wrtd.WRTD_GLOBAL_REP_CAP_ID,
wrtd.WRTD_ATTR_FW_COUNT)
print ('{0} Application{1} detected{2}'.format(count,
......@@ -47,7 +47,7 @@ def cmd_sys_info(wrtd, args):
'.' if (count == 0) else ':'))
for i in range(count):
if args.verbose:
print ()
print ('')
fw_name = wrtd.get_fw_name(i)
print ('# {0}'.format(fw_name))
if args.verbose:
......@@ -68,11 +68,11 @@ def cmd_sys_info(wrtd, args):
print(" - Network RX........: {0}".format(caps & 0x1 != 0))
print(" - Network TX........: {0}".format(caps & 0x2 != 0))
print()
print('')
cmd_list_alarms(wrtd, args)
print()
print('')
cmd_list_rules(wrtd, args)
print()
print('')
def cmd_sys_time(wrtd, args):
print('Current time = {0}'.format(__tstamp_to_str(
......@@ -96,7 +96,7 @@ def cmd_list_rules(wrtd, args):
for i in range(count):
args.name = wrtd.get_rule_name(i)
if args.verbose:
print ()
print ('')
print ('# {0}'.format(args.name))
if args.verbose:
cmd_rule_info(wrtd, args)
......@@ -190,7 +190,7 @@ def cmd_list_alarms(wrtd, args):
for i in range(count):
args.name = wrtd.get_alarm_name(i)
if args.verbose:
print ()
print ('')
print ('# {0}'.format(args.name))
if args.verbose:
cmd_alarm_info(wrtd, args)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment