In bpython/curtsiesfrontend/replyplainter.py, some string operations could be simplified by using `ljust` or `format`. In https://github.com/bpython/bpython/blob/566dfe5a5fab815fdd8d04d6d3d131333c2a5800/bpython/curtsiesfrontend/replpainter.py#L159 `line+' '*(width - len(line)))[:width])` can be replaced by `line.ljust(width)[:width]` (untested).
Activity
sebastinas commentedon Jan 15, 2015
Blocked by https://github.com/thomasballinger/curtsies/issues/62.
thomasballinger commentedon Jan 20, 2015
No longer blocked, Curtsies 0.1.17 adds
ljustandrjustthat work as described here. (but bpython not updated yet)