Python code coverage for Lib/test/subprocessdata/qgrep.py
# | count | content |
---|---|---|
1 | n/a | """When called with a single argument, simulated fgrep with a single |
2 | n/a | argument and no options.""" |
3 | n/a | |
4 | n/a | import sys |
5 | n/a | |
6 | n/a | if __name__ == "__main__": |
7 | n/a | pattern = sys.argv[1] |
8 | n/a | for line in sys.stdin: |
9 | n/a | if pattern in line: |
10 | n/a | sys.stdout.write(line) |