Skip to content
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

Drop StreamContextManager in favour of contextlib.contextmanager/asynccontextmanager #1577

Merged
merged 3 commits into from
Apr 19, 2021

Conversation

tomchristie
Copy link
Member

Possible refactoring that is worth our consideration.

Somewhat related to #998, since we also use contextlib.asynccontextmanager there, so both that pull request and this one lean on the async_generator package for 3.6 backport support.

@tomchristie tomchristie added the refactor Issues and PRs related to code refactoring label Apr 16, 2021
@tomchristie tomchristie changed the title Drop StreamContextManager in favour of contextlib.(async)contextmanager Drop StreamContextManager in favour of contextlib.contextmanager/asynccontextmanager Apr 16, 2021
Copy link
Member

@florimondmanca florimondmanca left a comment

Choose a reason for hiding this comment

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

Yes, definitely. :-)

@tomchristie tomchristie merged commit 8fd5b71 into master Apr 19, 2021
@tomchristie tomchristie deleted the drop-streamcontextmanager branch April 19, 2021 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Issues and PRs related to code refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants