changeset 393:e6d945a287a0 plus

forget utf-8
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Mon, 22 Jun 2026 17:39:07 +0100
parents faad1c51c289
children fb2f5c598256
files lib/python/cc/ex6.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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