From cb74a8c80eb6b3086bbda75df22afdb4b01bade8 Mon Sep 17 00:00:00 2001 From: MS Date: Sat, 8 Jun 2024 10:36:32 -0400 Subject: [PATCH] Disable autojunk for python difflib (#1001) --- tools/isledecomp/isledecomp/compare/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/isledecomp/isledecomp/compare/core.py b/tools/isledecomp/isledecomp/compare/core.py index 8e93a828..b1f1f094 100644 --- a/tools/isledecomp/isledecomp/compare/core.py +++ b/tools/isledecomp/isledecomp/compare/core.py @@ -565,7 +565,7 @@ def recomp_lookup(addr: int, exact: bool) -> Optional[str]: orig_asm = [x[1] for x in orig_combined] recomp_asm = [x[1] for x in recomp_combined] - diff = difflib.SequenceMatcher(None, orig_asm, recomp_asm) + diff = difflib.SequenceMatcher(None, orig_asm, recomp_asm, autojunk=False) ratio = diff.ratio() if ratio != 1.0: