diff options
| author | Jordan Wiens <jordan@psifertex.com> | 2017-08-15 13:14:56 -0400 |
|---|---|---|
| committer | Jordan Wiens <jordan@psifertex.com> | 2017-08-15 13:14:56 -0400 |
| commit | 6bcb7bd30e5e6a8e69c875841f04245b8c3a0d7a (patch) | |
| tree | 95473538b5fe6f8c5ac7595fc773aaa0505b1b95 /python | |
| parent | 8bb1e3f38e26a3ac26aa053b9ccb0c7a3b559cfc (diff) | |
add isatty for input as well
Diffstat (limited to 'python')
| -rw-r--r-- | python/scriptingprovider.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/python/scriptingprovider.py b/python/scriptingprovider.py index a913f7d6..ed9688b9 100644 --- a/python/scriptingprovider.py +++ b/python/scriptingprovider.py @@ -335,7 +335,6 @@ class _PythonScriptingInstanceOutput(object): self.buffer = "" self.encoding = 'UTF-8' self.errors = None - self.isatty = lambda: False self.mode = 'w' self.name = 'PythonScriptingInstanceOutput' self.newlines = None @@ -349,6 +348,9 @@ class _PythonScriptingInstanceOutput(object): def flush(self): pass + def isatty(self): + return False + def next(self): raise IOError("File not open for reading") @@ -412,6 +414,9 @@ class _PythonScriptingInstanceInput(object): def __init__(self, orig): self.orig = orig + def isatty(self): + return False + def read(self, size): interpreter = None if "value" in dir(PythonScriptingInstance._interpreter): |
