[Python-checkins] cpython: Close resources owned by subclass before calling super().close().
guido.van.rossum
python-checkins at python.org
Thu Oct 31 19:01:48 CET 2013
http://hg.python.org/cpython/rev/a3c68d919cd1
changeset: 86813:a3c68d919cd1
user: Guido van Rossum <guido at dropbox.com>
date: Thu Oct 31 11:01:40 2013 -0700
summary:
Close resources owned by subclass before calling super().close().
files:
Lib/selectors.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Lib/selectors.py b/Lib/selectors.py
--- a/Lib/selectors.py
+++ b/Lib/selectors.py
@@ -351,8 +351,8 @@
return ready
def close(self):
+ self._epoll.close()
super().close()
- self._epoll.close()
if hasattr(select, 'kqueue'):
@@ -414,8 +414,8 @@
return ready
def close(self):
+ self._kqueue.close()
super().close()
- self._kqueue.close()
# Choose the best implementation: roughly, epoll|kqueue > poll > select.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list