Skip to content

Commit 3d2b26e

Browse files
committed
* enter_context => with_resource
1 parent c675b42 commit 3d2b26e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
asyncclick (1:8.0.3-5) unstable; urgency=medium
2+
3+
* enter_context => with_resource
4+
5+
-- Matthias Urlichs <[email protected]> Sat, 15 Jan 2022 22:21:09 +0100
6+
17
asyncclick (1:8.0.3-4) unstable; urgency=medium
28

39
* missed anyio markers

src/asyncclick/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,11 +465,11 @@ async def __aexit__(self, exc_type, exc_value, tb): # type: ignore
465465
self.close()
466466
pop_context()
467467

468-
def enter_context(self, ctx):
468+
def with_resource(self, ctx):
469469
"""See :meth:contextlib.ExitStack.enter_context`."""
470470
return self._ctx_mgr.enter_context(ctx)
471471

472-
def enter_async_context(self, ctx):
472+
def with_async_resource(self, ctx):
473473
"""See :meth:contextlib.ExitStack.enter_async_context`."""
474474
return self._ctx_mgr.enter_async_context(ctx)
475475

0 commit comments

Comments
 (0)