In bpython/curtsiesfrontend/replyplainter.py, some string operations could be simplified by using ljust or format.
In
|
output_lines.append(border_color(config.left_border+u' ')+((line+' '*(width - len(line)))[:width])+border_color(u' ' + config.right_border)) |
line+' '*(width - len(line)))[:width]) can be replaced by
line.ljust(width)[:width] (untested).
In bpython/curtsiesfrontend/replyplainter.py, some string operations could be simplified by using
ljustorformat.In
bpython/bpython/curtsiesfrontend/replpainter.py
Line 159 in 566dfe5
line+' '*(width - len(line)))[:width])can be replaced byline.ljust(width)[:width](untested).