mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
#17351: merge with 3.3.
This commit is contained in:
commit
a41fb4be5b
7 changed files with 23 additions and 22 deletions
|
|
@ -381,7 +381,7 @@ and maps them to the context management protocol::
|
|||
|
||||
from contextlib import contextmanager, ExitStack
|
||||
|
||||
class ResourceManager(object):
|
||||
class ResourceManager:
|
||||
|
||||
def __init__(self, acquire_resource, release_resource, check_resource_ok=None):
|
||||
self.acquire_resource = acquire_resource
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue