diff --git a/xacro/__init__.py b/xacro/__init__.py index 95691ac..ea6d044 100644 --- a/xacro/__init__.py +++ b/xacro/__init__.py @@ -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 @@ -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 @@ -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