Skip to content

Commit

Permalink
columnize method: separator and displaywidth to kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
fdobad committed Nov 15, 2023
1 parent 5bf935c commit 27f59cd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions qtconsole/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def compute_item_matrix(items, empty=None, *, separator_size=2, displaywidth=80)
)


def columnize(items):
def columnize(items, separator=" ", displaywidth=80):
"""Transform a list of strings into a single string with columns.
Parameters
Expand All @@ -216,8 +216,6 @@ def columnize(items):
-------
The formatted string.
"""
separator = " "
displaywidth = 80
if not items:
return "\n"
matrix, info = compute_item_matrix(
Expand Down

0 comments on commit 27f59cd

Please sign in to comment.