Skip to content

Commit d8d4e4b

Browse files
wluptonmbj4668
authored andcommitted
Prune augmented nodes that are disabled due to disabled feature
1 parent e6f2eb3 commit d8d4e4b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyang/statements.py

+2
Original file line numberDiff line numberDiff line change
@@ -3149,6 +3149,8 @@ def p(n):
31493149
for d in deletes:
31503150
idx = n.i_children.index(d)
31513151
del n.i_children[idx]
3152+
for a in n.search('augment'):
3153+
p(a)
31523154
p(self)
31533155

31543156
class AugmentStatement(Statement):

0 commit comments

Comments
 (0)