mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Remove blank lines in pipenv graph
This commit is contained in:
+1
-1
@@ -2517,7 +2517,7 @@ def do_graph(bare=False, json=False, json_tree=False, reverse=False):
|
||||
click.echo(simplejson.dumps(data, indent=4))
|
||||
sys.exit(0)
|
||||
else:
|
||||
for line in c.out.split("\n"):
|
||||
for line in c.out.strip().split("\n"):
|
||||
# Ignore bad packages as top level.
|
||||
if line.split("==")[0] in BAD_PACKAGES and not reverse:
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user