mirror of
https://github.com/Foltik/dotfiles
synced 2024-11-27 21:19:51 -05:00
Niceify dump output
This commit is contained in:
parent
8fb5588064
commit
cc827fcd1d
@ -22,7 +22,10 @@ def run():
|
|||||||
def dump(package):
|
def dump(package):
|
||||||
print(package.name + ':')
|
print(package.name + ':')
|
||||||
for k, v in package.getattrs():
|
for k, v in package.getattrs():
|
||||||
print(' ' + k, v)
|
if isinstance(v, list):
|
||||||
|
print(' ' + k, [str(i) for i in v])
|
||||||
|
else:
|
||||||
|
print(' ' + k, v)
|
||||||
|
|
||||||
def lookup_package(name):
|
def lookup_package(name):
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user