Skip to content

Commit

Permalink
Added list_items()
Browse files Browse the repository at this point in the history
  • Loading branch information
PalNilsson committed Nov 19, 2024
1 parent 280d47f commit e36e57a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pilot/util/auxiliary.py
Original file line number Diff line number Diff line change
Expand Up @@ -839,3 +839,13 @@ def uuidgen_t() -> str:
:return: A UUID in the format "00000000-0000-0000-0000-000000000000" (str).
"""
return str(uuid4())


def list_items(items: list):
"""
List the items in the given list as a numbered list.
:param items: list of items (list)
"""
for i, item in enumerate(items):
logger.info(f'{i + 1}: {item}')

0 comments on commit e36e57a

Please sign in to comment.