Unverified 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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)