mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Close resources owned by subclass before calling super().close().
This commit is contained in:
parent
0160b5fae1
commit
61a2ced1c5
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue