Skip to content

Commit

Permalink
Remove followed /include/ directives
Browse files Browse the repository at this point in the history
Signed-off-by: Nathaniel Graff <[email protected]>
  • Loading branch information
nategraff-sifive committed Dec 2, 2019
1 parent d77d26f commit aa53824
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pydevicetree/source/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ def recurseIncludeFiles(elements, pwd):

elements += parseElements(contents)

del elements[elements.asList().index(e)]

def parseElements(dts, pwd="", followIncludes=False):
"""Parses a string into a list of elements"""
elements = grammar.devicetree.parseString(dts, parseAll=True)
Expand Down

0 comments on commit aa53824

Please sign in to comment.