# HG changeset patch # User Henry S. Thompson # Date 1782146347 -3600 # Node ID e6d945a287a0a9cb4d5f89482431ca1416bc70de # Parent faad1c51c2893969137d5ef800375ecf41390926 forget utf-8 diff -r faad1c51c289 -r e6d945a287a0 lib/python/cc/ex6.py --- a/lib/python/cc/ex6.py Mon Jun 22 16:00:02 2026 +0100 +++ b/lib/python/cc/ex6.py Mon Jun 22 17:39:07 2026 +0100 @@ -38,7 +38,7 @@ # part = 4 if (mm := L1PAT.match(buf)): - L1COUNTS[(mm[1][:min(10,len(mm[1]))]).decode('utf8')] += 1 + L1COUNTS[(mm[1][:min(10,len(mm[1]))])] += 1 def main(inpath: str): global N, WIN, HCOUNTS, L1COUNTS