Skip to content

Commit

Permalink
Remove global on read-only variable
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Haschke <[email protected]>
  • Loading branch information
mjcarroll and rhaschke authored Jan 17, 2025
1 parent 4399f2b commit ca32c41
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion xacro/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,6 @@ def parse(inp, filename=None):
f = None
if inp is None:
try:
global root_dir
inp = f = open(os.path.join(root_dir, filename))
except IOError as e:
# do not report currently processed file as "in file ..."
Expand Down

0 comments on commit ca32c41

Please sign in to comment.