diff options
author | Andrew Dunai <andunai@gmail.com> | 2018-01-07 02:15:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-07 02:15:55 +0200 |
commit | cd1b0b86c8c74c480e47370d03067ef4c8140ac4 (patch) | |
tree | 3634f142b1a6e265aa2d2f2c9b6a19736000606d | |
parent | eeec0d3a82f7b02c0cc03d278bc26bb985eddb47 (diff) | |
parent | 95e3b328c637367176e53440a4f5cfac6efb0718 (diff) | |
download | urwid-cd1b0b86c8c74c480e47370d03067ef4c8140ac4.tar.gz |
Merge pull request #222 from aleufroy/221_fix_fds_release_by_raw_display
fix: raw display should release file descriptors (issue #221)
-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 |