Skip to content

bpo-30017: Allowed calling the close() method of the zip entry writer object #1041

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

serhiy-storchaka
Copy link
Member

multiple times. Writing to closed zip entry writer object now always produce
a ValueError.

… object

multiple times.  Writing to closed zip entry writer object now always produce
a ValueError.
@mention-bot
Copy link

@serhiy-storchaka, thanks for your PR! By analyzing the history of the files in this pull request, we identified @ezio-melotti, @loewis and @Yhg1s to be potential reviewers.

Misc/NEWS Outdated
@@ -303,6 +303,10 @@ Extension Modules
Library
-------

- bpo-30017: Allowed calling the close() method of the zip entry writer object
multiple times. Writing to closed zip entry writer object now always produce
a ValueError.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs singular form of “produces”. I would put “Writing to a closed writer now always produces a ValueError.”

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Thank you.

@serhiy-storchaka serhiy-storchaka merged commit 4c0d9ea into python:master Apr 12, 2017
@serhiy-storchaka serhiy-storchaka deleted the zipfile-writer-closed branch April 12, 2017 13:03
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Apr 12, 2017
… object (python#1041)

multiple times.  Writing to closed zip entry writer object now always produce
a ValueError.
(cherry picked from commit 4c0d9ea)
serhiy-storchaka added a commit that referenced this pull request Apr 16, 2017
… object (#1041) (#1092)

multiple times.  Writing to closed zip entry writer object now always produce
a ValueError.
(cherry picked from commit 4c0d9ea)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants