[Git][reproducible-builds/diffoscope][master] 2 commits: Support file 5.43

Chris Lamb (@lamby) gitlab at salsa.debian.org
Fri Sep 23 15:14:36 UTC 2022



Chris Lamb pushed to branch master at Reproducible Builds / diffoscope


Commits:
88c08e7e by Jelle van der Waa at 2022-09-23T14:35:20+02:00
Support file 5.43

File 5.43 changed it's output format for pyc files to something new:

Byte-compiled Python module for CPython 3.9, timestamp-based, .py
timestamp: Sun Sep  5 18:47:25 2021 UTC, .py size: 14217 bytes

- - - - -
9af3e4ed by Chris Lamb at 2022-09-23T16:14:10+01:00
Apply black

Gbp-Dch: ignore

- - - - -


1 changed file:

- diffoscope/comparators/python.py


Changes:

=====================================
diffoscope/comparators/python.py
=====================================
@@ -36,7 +36,9 @@ re_memory_address = re.compile(r" at 0x\w+(?=, )")
 
 class PycFile(File):
     DESCRIPTION = "Python .pyc files"
-    FILE_TYPE_RE = re.compile(r"^python .*byte-compiled$")
+    FILE_TYPE_RE = re.compile(
+        r"(^python .*byte-compiled$|^Byte-compiled Python module for CPython .*)"
+    )
     FALLBACK_FILE_EXTENSION_SUFFIX = {".pyc"}
 
     def compare_details(self, other, source=None):



View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/compare/5eea97b53990104a0b6742c4fe7eff746df22fd1...9af3e4edbe600e0f9d8b947615b80e32c135e89c

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/compare/5eea97b53990104a0b6742c4fe7eff746df22fd1...9af3e4edbe600e0f9d8b947615b80e32c135e89c
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/20220923/28c46e5f/attachment.htm>


More information about the rb-commits mailing list