[Git][reproducible-builds/diffoscope][master] Process objdump symbol comment filter inputs as bytes (and not str) instances....

Chris Lamb (@lamby) gitlab at salsa.debian.org
Tue Dec 5 18:33:06 UTC 2023



Chris Lamb pushed to branch master at Reproducible Builds / diffoscope


Commits:
6d788d7d by Chris Lamb at 2023-12-05T18:31:29+00:00
Process objdump symbol comment filter inputs as bytes (and not str) instances. Thanks, Felix Schwarz! (Closes: reproducible-builds/diffoscope#358)

- - - - -


1 changed file:

- diffoscope/comparators/elf.py


Changes:

=====================================
diffoscope/comparators/elf.py
=====================================
@@ -265,7 +265,7 @@ class ObjdumpDisassembleSection(ObjdumpSection):
 
     def filter(self, line):
         # Apply this filter first as super() removes offsets
-        line = ObjdumpDisassembleSection.RE_SYMBOL_COMMENT.sub(r"\1", line)
+        line = ObjdumpDisassembleSection.RE_SYMBOL_COMMENT.sub(rb"\1", line)
         return super().filter(line)
 
 



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

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/6d788d7de9305f884880ee2d1a7ad57dba3a4082
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/20231205/086652eb/attachment.htm>


More information about the rb-commits mailing list