mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 06:46:15 +00:00
@@ -0,0 +1 @@
|
||||
Fix regression that caused printing non-printable ascii characters when help was called.
|
||||
@@ -189,7 +189,7 @@ def cli(
|
||||
# Check this again before exiting for empty ``pipenv`` command.
|
||||
elif ctx.invoked_subcommand is None:
|
||||
# Display help to user, if no commands were passed.
|
||||
console.print(format_help(ctx.get_help()))
|
||||
print(format_help(ctx.get_help()))
|
||||
|
||||
|
||||
@cli.command(
|
||||
|
||||
@@ -71,8 +71,7 @@ def unnest(elem: Iterable) -> Any:
|
||||
for el in target:
|
||||
if isinstance(el, Iterable) and not isinstance(el, str):
|
||||
el, el_copy = tee(el, 2)
|
||||
for sub in unnest(el_copy):
|
||||
yield sub
|
||||
yield from unnest(el_copy)
|
||||
else:
|
||||
yield el
|
||||
|
||||
|
||||
Reference in New Issue
Block a user