read from STDIN
This commit is contained in:
parent
f43f0a889c
commit
5cc2f218e1
1 changed files with 1 additions and 3 deletions
4
div.py
4
div.py
|
@ -5,10 +5,8 @@ import sys
|
||||||
filter_pc_sp = True
|
filter_pc_sp = True
|
||||||
counts = dict()
|
counts = dict()
|
||||||
|
|
||||||
fh = open(sys.argv[1], 'r')
|
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
l = fh.readline()
|
l = sys.stdin.readline()
|
||||||
if not l:
|
if not l:
|
||||||
break
|
break
|
||||||
if not 'instr:' in l and not 'Error by instruction' in l:
|
if not 'instr:' in l and not 'Error by instruction' in l:
|
||||||
|
|
Loading…
Add table
Reference in a new issue