[diffoscope] 01/01: No need to do complex string formatting just to convert an integer in a string

Mattia Rizzolo mattia at debian.org
Sat Feb 11 00:19:56 CET 2017


This is an automated email from the git hooks/post-receive script.

mattia pushed a commit to branch master
in repository diffoscope.

commit e68dced3d7f17238f1cf6a8e169590d8b3866a80
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Sat Feb 11 00:18:37 2017 +0100

    No need to do complex string formatting just to convert an integer in a string
    
    Gbp-Dch: Ignore
---
 diffoscope/comparators/utils/libarchive.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diffoscope/comparators/utils/libarchive.py b/diffoscope/comparators/utils/libarchive.py
index 9dd0b54..4924a31 100644
--- a/diffoscope/comparators/utils/libarchive.py
+++ b/diffoscope/comparators/utils/libarchive.py
@@ -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)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list