mirror of
https://github.com/littlefs-project/littlefs.git
synced 2025-10-17 07:41:29 +08:00
Added teepipe.py and watch.py
This commit is contained in:
@@ -132,6 +132,7 @@ class PerfBdResult(co.namedtuple('PerfBdResult', [
|
||||
|
||||
|
||||
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)
|
||||
|
Reference in New Issue
Block a user