mirror of
https://github.com/dgelessus/python-rsrcfork.git
synced 2024-11-26 11:49:23 +00:00
Adjust --group=id output format slightly
This commit is contained in:
parent
c6337bdfbd
commit
d7255bc977
@ -406,7 +406,7 @@ def _list_resource_file(rf: api.ResourceFile, *, sort: bool, group: str, decompr
|
|||||||
resources_by_id = {resid: list(reses) for resid, reses in itertools.groupby(all_resources, key=lambda res: res.id)}
|
resources_by_id = {resid: list(reses) for resid, reses in itertools.groupby(all_resources, key=lambda res: res.id)}
|
||||||
print(f"{len(resources_by_id)} resource IDs:")
|
print(f"{len(resources_by_id)} resource IDs:")
|
||||||
for resid, resources in resources_by_id.items():
|
for resid, resources in resources_by_id.items():
|
||||||
print(f"{resid}: {len(resources)} resources:")
|
print(f"({resid}): {len(resources)} resources:")
|
||||||
if sort:
|
if sort:
|
||||||
resources.sort(key=lambda res: res.type)
|
resources.sort(key=lambda res: res.type)
|
||||||
for res in resources:
|
for res in resources:
|
||||||
|
Loading…
Reference in New Issue
Block a user