Skip to content

Commit eb28db5

Browse files
Use select fuction from prompt_toolkit.eventloop.select.
1 parent 8cd3125 commit eb28db5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pymux/client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
from __future__ import unicode_literals
22

33
from prompt_toolkit.eventloop.base import INPUT_TIMEOUT
4-
from prompt_toolkit.eventloop.posix import _select, call_on_sigwinch
4+
from prompt_toolkit.eventloop.posix import call_on_sigwinch
5+
from prompt_toolkit.eventloop.select import select_fds
56
from prompt_toolkit.eventloop.posix_utils import PosixStdinReader
67
from prompt_toolkit.terminal.vt100_input import raw_mode, cooked_mode
78
from prompt_toolkit.terminal.vt100_output import _get_size, Vt100_Output
@@ -83,7 +84,7 @@ def attach(self, detach_other_clients=False, true_color=False):
8384

8485
with call_on_sigwinch(self._send_size):
8586
while True:
86-
r, w, x = _select([stdin_fd, socket_fd], [], [], current_timeout)
87+
r = select_fds([stdin_fd, socket_fd], current_timeout)
8788

8889
if socket_fd in r:
8990
# Received packet from server.

0 commit comments

Comments
 (0)