diff options
-rw-r--r-- | urwid/raw_display.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/urwid/raw_display.py b/urwid/raw_display.py index 9eadc0e..b0482b1 100644 --- a/urwid/raw_display.py +++ b/urwid/raw_display.py @@ -394,9 +394,7 @@ class Screen(BaseScreen, RealTerminal): wrapper = lambda: self.parse_input( event_loop, callback, self.get_available_raw_input()) fds = self.get_input_descriptors() - handles = [] - for fd in fds: - event_loop.watch_file(fd, wrapper) + handles = [event_loop.watch_file(fd, wrapper) for fd in fds] self._current_event_loop_handles = handles _input_timeout = None |