Skip to content

Commit

Permalink
PR #2817 from karina-ranadive: Replaced Deprecated function mktemp to…
Browse files Browse the repository at this point in the history
… TemporaryFile
  • Loading branch information
Nir-Az authored Jul 24, 2023
2 parents 9203640 + 0df1794 commit 7456c38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion realsense2_description/launch/launch_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def to_urdf(xacro_path, parameters=None):
* xacro_path -- the path to the xacro file
* parameters -- to be used when xacro file is parsed.
"""
urdf_path = tempfile.mktemp(prefix="%s_" % os.path.basename(xacro_path))
urdf_path = tempfile.TemporaryFile(prefix="%s_" % os.path.basename(xacro_path))

# open and process file
doc = xacro.process_file(xacro_path, mappings=parameters)
Expand Down

0 comments on commit 7456c38

Please sign in to comment.