Skip to content

Commit 5797d20

Browse files
committed
[property] Change export_leaf Comment and Newline
1 parent 23a3d45 commit 5797d20

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

odml/property.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,8 @@ def pprint(self, indent=2, max_length=80, current_depth=-1):
666666

667667
def export_leaf(self):
668668
"""
669-
Export leaf, start at property.
669+
Export only the path from this property to the root.
670+
Include all properties of parent sections.
670671
"""
671672
curr = self.parent
672673
par = self.parent
@@ -685,4 +686,4 @@ def export_leaf(self):
685686
child = par
686687
curr = curr.parent
687688

688-
return par
689+
return par

0 commit comments

Comments
 (0)