FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.6] bpo-29692: contextlib.contextmanager may incorrectly unchain Ru… by Mariatta · Pull Request #1105 · python/cpython · GitHub

Repository navigation

[3.6] bpo-29692: contextlib.contextmanager may incorrectly unchain Ru… - #1105

Merged
Mariatta merged 1 commit into
python:3.6from
Mariatta:backport-00c75e9-3.6
Apr 13, 2017
Merged

Mariatta merged 1 commit into
python:3.6from
Mariatta:backport-00c75e9-3.6

Conversation

Copy link
Copy Markdown
Member

…ntimeError (GH-949)

contextlib._GeneratorContextManager.exit includes a special case to deal with
PEP 479 RuntimeErrors created when StopIteration is thrown into the context
manager body.

Previously this check was too permissive, and undid one level of chaining on all
RuntimeError instances, not just those that wrapped a StopIteration instance.
(cherry picked from commit 00c75e9)

…ntimeError (pythonGH-949)

contextlib._GeneratorContextManager.__exit__ includes a special case to deal with
PEP 479 RuntimeErrors created when `StopIteration` is thrown into the context
manager body.

Previously this check was too permissive, and undid one level of chaining on *all*
RuntimeError instances, not just those that wrapped a StopIteration instance.
(cherry picked from commit 00c75e9)
Mariatta merged commit 9b409ff into python:3.6 Apr 13, 2017
Mariatta deleted the backport-00c75e9-3.6 branch April 13, 2017 09:50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL