read from STDIN

This commit is contained in:
folkert van heusden 2024-04-01 11:28:07 +02:00
parent f43f0a889c
commit 5cc2f218e1
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

4
div.py
View file

@ -5,10 +5,8 @@ import sys
filter_pc_sp = True
counts = dict()
fh = open(sys.argv[1], 'r')
while True:
l = fh.readline()
l = sys.stdin.readline()
if not l:
break
if not 'instr:' in l and not 'Error by instruction' in l: