git.ithinksw.org
/
~jspiros
/
python-ebml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implemented proper recursive element definition parsing from specdata files.
[~jspiros/python-ebml.git]
/
ebml
/
utils
/
dump_structure.py
diff --git
a/ebml/utils/dump_structure.py
b/ebml/utils/dump_structure.py
index
8e36663
..
04be1ad
100644
(file)
--- a/
ebml/utils/dump_structure.py
+++ b/
ebml/utils/dump_structure.py
@@
-3,7
+3,7
@@
from ..schema import EBMLDocument, UnknownElement, CONTAINER, BINARY
def dump_element(element, indent=0):
if isinstance(element, UnknownElement):
def dump_element(element, indent=0):
if isinstance(element, UnknownElement):
- print(('\t' * indent) + ('<Unknown id=\'%s\' bytes=\'%i\' />' % (hex(element.id), element.
encoding[0]
)))
+ print(('\t' * indent) + ('<Unknown id=\'%s\' bytes=\'%i\' />' % (hex(element.id), element.
body_size
)))
else:
sargs = {
'name': element.name,
else:
sargs = {
'name': element.name,