Skip to content

Commit

Permalink
Merge pull request #592 from fdobad/master
Browse files Browse the repository at this point in the history
Fix some utility functions
  • Loading branch information
ccordoba12 authored Nov 15, 2023
2 parents 9f0b540 + 27f59cd commit 909d9df
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions qtconsole/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def _get_or_default(mylist, i, *, default):
return mylist[i]


def compute_item_matrix(items, empty=None, *, separator_size=2, displaywith=80):
def compute_item_matrix(items, empty=None, *, separator_size=2, displaywidth=80):
"""Returns a nested list, and info to columnize items
Parameters
Expand Down Expand Up @@ -204,7 +204,7 @@ def compute_item_matrix(items, empty=None, *, separator_size=2, displaywith=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 909d9df

Please sign in to comment.