diff options
author | wm4 <wm4@nowhere> | 2016-12-17 17:30:13 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-12-17 17:30:13 +0100 |
commit | 1ef9876b7d3973ceb6702ccbfd706eb3e73dec26 (patch) | |
tree | bfc9eeee6c0b8f39d231640f9e65127be52401a6 /TOOLS | |
parent | a61eb8114161f427c760e19ec7a6e01c9e03c59a (diff) |
TOOLS/matroska.py: format file dumper output slightly nicer
Diffstat (limited to 'TOOLS')
-rwxr-xr-x | TOOLS/matroska.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/TOOLS/matroska.py b/TOOLS/matroska.py index 0ff0d46862..6e843560da 100755 --- a/TOOLS/matroska.py +++ b/TOOLS/matroska.py @@ -408,7 +408,7 @@ def parse_one(s, depth, parent, maxlen): this_length = len(elid) / 2 + size + length if elem is not None: if elem.valtype != 'skip': - print(depth, elid, elem.name, 'size:', length, 'value:', end=' ') + print(" " * depth, '[' + elid + ']', elem.name, 'size:', length, 'value:', end=' ') if elem.valtype == 'sub': print('subelements:') while length > 0: @@ -429,7 +429,7 @@ def parse_one(s, depth, parent, maxlen): if len(t) < 20: t = hexlify(t).decode('ascii') else: - t = '<skipped {0} bytes>'.format(len(t)) + t = '<{0} bytes>'.format(len(t)) print('binary', t, dec) elif elem.valtype == 'uint': print('uint', read_uint(s, length)) |