From c7719739437794a3cf8ee8cc6a22bca6f26917a9 Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Thu, 4 Apr 2024 21:22:35 +0200 Subject: [PATCH] remove any \r or \n --- div.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/div.py b/div.py index cb28662..aa936c5 100755 --- a/div.py +++ b/div.py @@ -2,7 +2,7 @@ import sys -filter_pc_sp = True +filter_pc_sp = False counts = dict() while True: @@ -19,7 +19,7 @@ while True: i = l.find(':') l = l[i+2:] i = l.find(' ') - l = l[0:i] + l = l[0:i].strip() if not l in counts: counts[l] = [0, 0] @@ -33,7 +33,7 @@ while True: continue i = l.find(' ') - l = l[0:i] + l = l[0:i].strip() if not l in counts: counts[l] = [1, 0]