Skip to content

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

Merged
lovelydinosaur merged 3 commits into
masterfrom
drop-streamcontextmanager
Apr 19, 2021
Merged

Drop StreamContextManager in favour of contextlib.contextmanager/asynccontextmanager#1577
lovelydinosaur merged 3 commits into
masterfrom
drop-streamcontextmanager

Conversation

@lovelydinosaur

Copy link
Copy Markdown
Contributor

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.

@lovelydinosaurlovelydinosaur added the refactor Issues and PRs related to code refactoring label Apr 16, 2021
@lovelydinosaurlovelydinosaur changed the title Drop StreamContextManager in favour of contextlib.(async)contextmanagerDrop StreamContextManager in favour of contextlib.contextmanager/asynccontextmanagerApr 16, 2021

@florimondmancaflorimondmanca left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes, definitely. :-)

@lovelydinosaur
lovelydinosaur merged commit 8fd5b71 into masterApr 19, 2021
@lovelydinosaur
lovelydinosaur deleted the drop-streamcontextmanager branch April 19, 2021 10:07
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactorIssues and PRs related to code refactoring

Development

Successfully merging this pull request may close these issues.

2 participants

@lovelydinosaur@florimondmanca