X Tutup
Skip to content

Redo some string operations #439

@sebastinas

Description

@sebastinas

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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup