remove any \r or \n
This commit is contained in:
parent
90d98f4330
commit
c771973943
1 changed files with 3 additions and 3 deletions
6
div.py
6
div.py
|
@ -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]
|
||||||
|
|
Loading…
Add table
Reference in a new issue