Commit 5896387a authored by jvoisin's avatar jvoisin

Output metadata in a sorted fashion

parent d4c050a7
Pipeline #19777 failed with stages
in 34 seconds
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment