mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[python] PY-40035 sys.stdin.read() truncated at newlines during debug session
Merge-request: IJ-MR-184781 Merged-by: Egor Eliseev <Egor.Eliseev@jetbrains.com> GitOrigin-RevId: 3c5e3044065da34b042fc7859066e0b0111f22e9
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a86582d0b4
commit
b8dae4b043
@@ -118,6 +118,13 @@ class DebugConsoleStdIn(BaseStdIn):
|
||||
self.__pydev_run_command(False)
|
||||
return result
|
||||
|
||||
def read(self, *args, **kwargs):
|
||||
# Notify Java side about input and call original function
|
||||
self.__pydev_run_command(True)
|
||||
result = self.original_stdin.read(*args, **kwargs)
|
||||
self.__pydev_run_command(False)
|
||||
return result
|
||||
|
||||
def __iter__(self):
|
||||
self.iter = self.original_stdin.__iter__()
|
||||
return self
|
||||
|
||||
Reference in New Issue
Block a user