You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
379 B
Python
31 lines
379 B
Python
3 years ago
|
#!/usr/bin/python3
|
||
|
# gtkwave process filter
|
||
|
|
||
|
# does nothing
|
||
|
|
||
|
import sys
|
||
|
|
||
|
fi = sys.stdin
|
||
|
fo = sys.stdout
|
||
|
fe = sys.stderr
|
||
|
|
||
|
debug = False
|
||
|
|
||
|
def dbg(m):
|
||
|
if debug:
|
||
|
fe.write(m + '\n')
|
||
|
fe.flush()
|
||
|
|
||
|
def main():
|
||
|
|
||
|
while True:
|
||
|
|
||
|
l = fi.readline()
|
||
|
if not l:
|
||
|
return 0
|
||
|
fo.write(f'{l}\n')
|
||
|
fo.flush()
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
sys.exit(main())
|