Browse Source

not using format strings

no_compress
Raphael Roberts 7 years ago
parent
commit
63985520e4
  1. 2
      main.py
  2. 4
      print2d.py

2
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

4
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:

Loading…
Cancel
Save