Skip to content
Snippets Groups Projects
Verified Commit e68dced3 authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

No need to do complex string formatting just to convert an integer in a string

Gbp-Dch: Ignore
parent c7b8eaa7
No related branches found
No related tags found
No related merge requests found
......@@ -219,7 +219,7 @@ class LibarchiveContainer(Archive):
# Maintain a mapping of archive path to the extracted path,
# avoiding the need to sanitise filenames.
dst = os.path.join(tmpdir, '{}'.format(idx))
dst = os.path.join(tmpdir, str(idx))
self._members[entry.pathname] = dst
logger.debug("Extracting %s to %s", entry.pathname, dst)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment