Skip to content

Commit da93090

Browse files
committed
remove overriding read()
1 parent ea55d8b commit da93090

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

python_files/python_server.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -125,16 +125,6 @@ def __init__(self, name, encoding="utf-8", newline=None):
125125
self._custom_name = name
126126
super().__init__(self._buffer, encoding=encoding, newline=newline)
127127

128-
def read(self, size: Optional[int] = None):
129-
if self._custom_name == "<stdin>":
130-
request_id = send_request()
131-
result = handle_response(request_id)
132-
return result["result"][
133-
"userInput"
134-
] # Read from stdin, simply return user 'input' from TS side
135-
else:
136-
return super().read(size)
137-
138128
def close(self):
139129
"""Provide this close method which is used by some tools."""
140130
# This is intentionally empty.

0 commit comments

Comments
 (0)