From 6eae76b095ef4d719043a109c05d94900aaa3791 Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Fri, 26 Jul 2024 22:52:33 +0300 Subject: [PATCH] Properly remove ampersand escaping for large topsequence --- scripts/topsequences.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/topsequences.py b/scripts/topsequences.py index b5eda14..2edc5a4 100755 --- a/scripts/topsequences.py +++ b/scripts/topsequences.py @@ -94,5 +94,5 @@ with open(sys.argv[2], "w") as awkfile: with open(sys.argv[3], "w") as pacfile: pacdict = {} for i, w in enumerate(finallist): - pacdict[wordreplace[i].strip('\\')] = w + pacdict[wordreplace[i].replace('\\', '')] = w print(pacdict, file=pacfile)