Skip to content

Commit

Permalink
haven_config only uses pprint for non-strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
canismarko committed Feb 23, 2024
1 parent ac1b8bb commit 849f41e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/haven/_iconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,11 @@ def print_config_value(args: Sequence[str] = None):
try:
value = value.strip()
except AttributeError:
pass
pprint(value)
# It's not a simple string, so pretty print it
pprint(value)
else:
# Simple string, so just print it
print(value)


@contextmanager
Expand Down

0 comments on commit 849f41e

Please sign in to comment.