diff options
author | Guido van Rossum <guido@dropbox.com> | 2013-10-31 18:01:40 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@dropbox.com> | 2013-10-31 18:01:40 (GMT) |
commit | 61a2ced1c5b91ea05300dfcb0801f1ffaf58647f (patch) | |
tree | f4d09bba92361e48a26896aa3ebd330d606d3c85 /Lib/selectors.py | |
parent | 0160b5fae1a93fc6b3da57da08b1fdadec2b83f4 (diff) | |
download | cpython-61a2ced1c5b91ea05300dfcb0801f1ffaf58647f.zip cpython-61a2ced1c5b91ea05300dfcb0801f1ffaf58647f.tar.gz cpython-61a2ced1c5b91ea05300dfcb0801f1ffaf58647f.tar.bz2 |
Close resources owned by subclass before calling super().close().
Diffstat (limited to 'Lib/selectors.py')
-rw-r--r-- | Lib/selectors.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/selectors.py b/Lib/selectors.py index 3e6c2ad..3638e85 100644 --- a/Lib/selectors.py +++ b/Lib/selectors.py @@ -351,8 +351,8 @@ if hasattr(select, 'epoll'): return ready def close(self): - super().close() self._epoll.close() + super().close() if hasattr(select, 'kqueue'): @@ -414,8 +414,8 @@ if hasattr(select, 'kqueue'): return ready def close(self): - super().close() self._kqueue.close() + super().close() # Choose the best implementation: roughly, epoll|kqueue > poll > select. |