mirror of
https://github.com/python/cpython.git
synced 2026-01-06 23:42:34 +00:00
Add comment
This commit is contained in:
parent
71a28a9174
commit
600012028e
1 changed files with 2 additions and 0 deletions
|
|
@ -149,6 +149,8 @@ def __init__(self, handle, readable=True, writable=True):
|
|||
self._readable = readable
|
||||
self._writable = writable
|
||||
|
||||
# XXX should we use util.Finalize instead of a __del__?
|
||||
|
||||
def __del__(self):
|
||||
if self._handle is not None:
|
||||
self._close()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue