You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Aifc_write.close() can raise exception and left the internal file object not closed. The patch closes the file object even in case of error and reset _file to None even in case of the file object close() raises an exception, so that Aifc_write.close() can be called repeatedly.
Adding "with" support to Aifc_write looks like a new feature, but Aifc_write doesn't seem to be part of the public API. Does this change (indirectly) add "with" support to any part of the public API?
Adding "with" support to Aifc_write looks like a new feature, but Aifc_write doesn't seem to be part of the public API. Does this change (indirectly) add "with" support to any part of the public API?
Don't pay attention, it was a wrong patch. For "with" support see bpo-16486.
Looks good to me, except:
the patch contains unrelated whitespace changes. Please don't commit them along the fix. If you think they are really necessary, they should go in a separate commit.
Of course. Thanks for point. It's my editor made wrong whitespace changes after block indent/unindent. "hg diff" shows this changes and I shouldn't miss this. I will review every patch before commit one more time.
python-dev commented on Dec 29, 2012
python-devmannequin
Mannequin
More actions
New changeset cf8d692cc847 by Serhiy Storchaka in branch '2.7':
Issue bpo-16485: Fix file descriptor not being closed if file header patching fails on closing of aifc file. http://hg.python.org/cpython/rev/cf8d692cc847
New changeset e3c4e9f4ea0f by Serhiy Storchaka in branch '3.2':
Issue bpo-16485: Fix file descriptor not being closed if file header patching fails on closing of aifc file. http://hg.python.org/cpython/rev/e3c4e9f4ea0f
New changeset 9a571c4a16d1 by Serhiy Storchaka in branch '3.3':
Issue bpo-16485: Fix file descriptor not being closed if file header patching fails on closing of aifc file. http://hg.python.org/cpython/rev/9a571c4a16d1
New changeset 79a8f6e1dfb0 by Serhiy Storchaka in branch 'default':
Issue bpo-16485: Fix file descriptor not being closed if file header patching fails on closing of aifc file. http://hg.python.org/cpython/rev/79a8f6e1dfb0
Activity
serhiy-storchaka commentedon Nov 16, 2012
Aifc_write.close() can raise exception and left the internal file object not closed. The patch closes the file object even in case of error and reset _file to None even in case of the file object close() raises an exception, so that Aifc_write.close() can be called repeatedly.
ezio-melotti commentedon Nov 16, 2012
Adding "with" support to Aifc_write looks like a new feature, but Aifc_write doesn't seem to be part of the public API. Does this change (indirectly) add "with" support to any part of the public API?
serhiy-storchaka commentedon Nov 16, 2012
Sorry, I miss that test_close() already exists. Merged.
serhiy-storchaka commentedon Nov 16, 2012
Don't pay attention, it was a wrong patch. For "with" support see bpo-16486.
serhiy-storchaka commentedon Dec 27, 2012
If no one objects I will commit this next year.
birkenfeld commentedon Dec 28, 2012
Looks good to me, except:
the patch contains unrelated whitespace changes. Please don't commit them along the fix. If you think they are really necessary, they should go in a separate commit.
serhiy-storchaka commentedon Dec 28, 2012
Of course. Thanks for point. It's my editor made wrong whitespace changes after block indent/unindent. "hg diff" shows this changes and I shouldn't miss this. I will review every patch before commit one more time.
python-dev commentedon Dec 29, 2012
New changeset cf8d692cc847 by Serhiy Storchaka in branch '2.7':
Issue bpo-16485: Fix file descriptor not being closed if file header patching fails on closing of aifc file.
http://hg.python.org/cpython/rev/cf8d692cc847
New changeset e3c4e9f4ea0f by Serhiy Storchaka in branch '3.2':
Issue bpo-16485: Fix file descriptor not being closed if file header patching fails on closing of aifc file.
http://hg.python.org/cpython/rev/e3c4e9f4ea0f
New changeset 9a571c4a16d1 by Serhiy Storchaka in branch '3.3':
Issue bpo-16485: Fix file descriptor not being closed if file header patching fails on closing of aifc file.
http://hg.python.org/cpython/rev/9a571c4a16d1
New changeset 79a8f6e1dfb0 by Serhiy Storchaka in branch 'default':
Issue bpo-16485: Fix file descriptor not being closed if file header patching fails on closing of aifc file.
http://hg.python.org/cpython/rev/79a8f6e1dfb0