remove any \r or \n

This commit is contained in:
folkert van heusden 2024-04-04 21:22:35 +02:00
parent 90d98f4330
commit c771973943
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

6
div.py
View file

@ -2,7 +2,7 @@
import sys import sys
filter_pc_sp = True filter_pc_sp = False
counts = dict() counts = dict()
while True: while True:
@ -19,7 +19,7 @@ while True:
i = l.find(':') i = l.find(':')
l = l[i+2:] l = l[i+2:]
i = l.find(' ') i = l.find(' ')
l = l[0:i] l = l[0:i].strip()
if not l in counts: if not l in counts:
counts[l] = [0, 0] counts[l] = [0, 0]
@ -33,7 +33,7 @@ while True:
continue continue
i = l.find(' ') i = l.find(' ')
l = l[0:i] l = l[0:i].strip()
if not l in counts: if not l in counts:
counts[l] = [1, 0] counts[l] = [1, 0]