[diffoscope] 04/05: comparators.apk: Use os.path.dirname over os.path.split.

Chris Lamb chris at chris-lamb.co.uk
Mon Jan 9 12:32:17 CET 2017

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

lamby pushed a commit to branch master
in repository diffoscope.

commit 33ba1d75490271cc491e70e26c5440199793423d
Author: Chris Lamb <lamby at debian.org>
Date:   Mon Jan 9 11:27:09 2017 +0000

    comparators.apk: Use os.path.dirname over os.path.split.
    Gbp-Dch: Ignore
    Signed-off-by: Chris Lamb <lamby at debian.org>
 diffoscope/comparators/apk.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diffoscope/comparators/apk.py b/diffoscope/comparators/apk.py
index 2f2757a..2a923aa 100644
--- a/diffoscope/comparators/apk.py
+++ b/diffoscope/comparators/apk.py
@@ -91,7 +91,7 @@ class ApkFile(File):
 def filter_apk_metadata(filepath, archive_name):
-    new_filename = os.path.join(os.path.split(filepath)[0], "APK metadata")
+    new_filename = os.path.join(os.path.dirname(filepath), "APK metadata")
     logger.debug("Moving APK metadata from %s to %s", filepath, new_filename)
     with open(filepath) as f:
         with open(new_filename, "w") as f_out:

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

More information about the diffoscope mailing list