diff --git a/main.py b/main.py index 4a9d9e6..edf0ac4 100644 --- a/main.py +++ b/main.py @@ -95,7 +95,7 @@ if __name__ == "__main__": args = parser.parse_args() sys.stderr = open(osp.join(osp.dirname(__file__),'stderr.log'),'w') args.arg = ' '.join(args.arg) - + if not args.arg.isdecimal(): # save on import time slightly from print2d import print2d diff --git a/print2d.py b/print2d.py index 3efee86..5f66c5f 100644 --- a/print2d.py +++ b/print2d.py @@ -18,9 +18,9 @@ def print2d(l,datetime_format = "%A, %B %e, %Y %H:%M:%S",seperator= ' | ',spacer fmt_row = '{content}' if l_end: - fmt_row = f'{l_end} ' + fmt_row + fmt_row = '{} {}'.format(l_end,fmt_row) if r_end: - fmt_row = fmt_row + f' {r_end}' + fmt_row = '{} {}'.format(fmt_row,r_end) done = [] for row in l: