Error 'Inappropriate ioctl for device' in debugger with Django
Do not override original sys.stdin.isatty(), because it can't be set to any constant value. It should be False for local interpreters and True for remote interpreters.
@@ -82,9 +82,6 @@ class BaseStdIn:
def write(self, *args, **kwargs):
pass # not available StdIn (but it can be expected to be in the stream interface)
- def isatty(self):
- return self.original_stdin.isatty()
-
def flush(self, *args, **kwargs):
pass # not available StdIn (but it can be expected to be in the stream interface)
