ยปCore Development>Code coverage>Lib/test/subprocessdata/qgrep.py

Python code coverage for Lib/test/subprocessdata/qgrep.py

#countcontent
1n/a"""When called with a single argument, simulated fgrep with a single
2n/aargument and no options."""
3n/a
4n/aimport sys
5n/a
6n/aif __name__ == "__main__":
7n/a pattern = sys.argv[1]
8n/a for line in sys.stdin:
9n/a if pattern in line:
10n/a sys.stdout.write(line)