Added teepipe.py and watch.py

This commit is contained in:
Christopher Haster
2022-10-16 14:27:14 -05:00
parent 3a33c3795b
commit b2a2cc9a19
16 changed files with 509 additions and 47 deletions

View File

@@ -546,6 +546,7 @@ def table(Result, results, diff_results=None, *,
def openio(path, mode='r', buffering=-1):
# allow '-' for stdin/stdout
if path == '-':
if mode == 'r':
return os.fdopen(os.dup(sys.stdin.fileno()), mode, buffering)