Skip to content
Snippets Groups Projects
Commit 5896387a authored by Julien (jvoisin) Voisin's avatar Julien (jvoisin) Voisin
Browse files

Output metadata in a sorted fashion

parent d4c050a7
No related branches found
Tags 0.5.0
No related merge requests found
......@@ -77,9 +77,10 @@ def __print_meta(filename: str, metadata: dict, depth: int=1):
print("[%s] Metadata for %s:" % ('+'*depth, filename))
for k, v in metadata.items():
for (k,v) in sorted(metadata.items()):
if isinstance(v, dict):
return __print_meta(k, v, depth+1)
__print_meta(k, v, depth+1)
continue
try: # FIXME this is ugly.
print(padding + " %s: %s" % (k, v))
except UnicodeEncodeError:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment