mirror of
https://github.com/LIV2/amitools.git
synced 2025-12-06 06:32:47 +00:00
do not close stdin/stdout
This commit is contained in:
parent
4393dfdad4
commit
f3b6ede154
@ -34,7 +34,6 @@ class FileManager:
|
||||
# create unbuffered raw stream if its a tty
|
||||
if os.isatty(fileno):
|
||||
raw_fobj = open(fileno, mode, buffering=0)
|
||||
need_close = True
|
||||
except:
|
||||
pass
|
||||
return FileHandle(raw_fobj, ami_name, sys_name, need_close=need_close)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user