Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
Properly forward sys.stdin.read(). Fixes #1423 (#1438)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioz authored May 21, 2019
1 parent ba04a8e commit 5e93cfd
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,13 @@ def readline(self, *args, **kwargs):
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


class CodeFragment:

Expand Down

0 comments on commit 5e93cfd

Please sign in to comment.