Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
972cd7d5
Unverified
Commit
972cd7d5
authored
Mar 04, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix show --tre
parent
27ce5b4b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
poetry/console/commands/show.py
+3
-3
No files found.
poetry/console/commands/show.py
View file @
972cd7d5
...
...
@@ -180,14 +180,14 @@ lists all packages available."""
break
dependencies
=
sorted
(
dependencies
,
key
=
lambda
x
:
x
.
name
)
tree_bar
=
previous_tree_bar
+
' ├'
tree_bar
=
previous_tree_bar
+
'
├'
i
=
0
total
=
len
(
dependencies
)
for
dependency
in
dependencies
:
i
+=
1
current_tree
=
packages_in_tree
if
i
==
total
:
tree_bar
=
previous_tree_bar
+
'└'
tree_bar
=
previous_tree_bar
+
'
└'
color_ident
=
level
%
len
(
self
.
colors
)
color
=
self
.
colors
[
color_ident
]
...
...
@@ -196,7 +196,7 @@ lists all packages available."""
if
dependency
.
name
in
current_tree
:
circular_warn
=
'(circular dependency aborted here)'
info
=
f
'{tree_bar}── <{color}>{dependency.name}</{color} '
\
info
=
f
'{tree_bar}── <{color}>{dependency.name}</{color}
>
'
\
f
'{dependency.pretty_constraint} {circular_warn}'
self
.
_write_tree_line
(
info
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment