Skip to content

Commit

Permalink
Minimize diff
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll committed Jan 14, 2025
1 parent 6495fd4 commit b4aa47d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xacro/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@
from .xmlutils import opt_attrs, reqd_attrs, first_child_element, \
next_sibling_element, replace_node


# Dictionary of substitution args
substitution_args_context = {}


# Stack of currently processed files / macros
filestack = None
macrostack = None
Expand Down Expand Up @@ -527,7 +529,6 @@ def process_include(elt, macros, symbols, func):
try:
# extend filestack
filestack.append(filename)
print(filename)
include = parse(None, filename).documentElement

# recursive call to func
Expand Down Expand Up @@ -1105,7 +1106,6 @@ def process_file(input_file_name, **kwargs):
"""main processing pipeline"""
# initialize file stack for error-reporting
init_stacks(input_file_name)

# parse the document into a xml.dom tree
doc = parse(None, input_file_name)
# perform macro replacement
Expand Down

0 comments on commit b4aa47d

Please sign in to comment.