[Git][reproducible-builds/diffoscope][master] Don't call os.path.basename twice.

Chris Lamb (@lamby) gitlab at salsa.debian.org
Tue May 11 09:19:04 UTC 2021



Chris Lamb pushed to branch master at Reproducible Builds / diffoscope


Commits:
0ac914eb by Chris Lamb at 2021-05-11T10:18:41+01:00
Don't call os.path.basename twice.

- - - - -


1 changed file:

- diffoscope/comparators/apk.py


Changes:

=====================================
diffoscope/comparators/apk.py
=====================================
@@ -231,7 +231,7 @@ def filter_apk_metadata(filepath, archive_name):
     logger.debug("Moving APK metadata from %s to %s", filepath, new_filename)
 
     re_filename = re.compile(
-        r"^apkFileName: %s" % re.escape(os.path.basename(archive_name))
+        r"^apkFileName: %s" % re.escape(archive_name)
     )
 
     with open(filepath) as in_, open(new_filename, "w") as out:



View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/0ac914eb59167a6c68704495c32bae596cc3b9fe

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/0ac914eb59167a6c68704495c32bae596cc3b9fe
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20210511/cb125f09/attachment.htm>


More information about the rb-commits mailing list