Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d58a0b6 + e8e2df3 commit fa4ed0cCopy full SHA for fa4ed0c
1 file changed
Doc/library/contextlib.rst
@@ -371,7 +371,7 @@ some of the context managers being optional::
371
with ExitStack() as stack:
372
for resource in resources:
373
stack.enter_context(resource)
374
- if need_special resource:
+ if need_special_resource():
375
special = acquire_special_resource()
376
stack.callback(release_special_resource, special)
377
# Perform operations that use the acquired resources
0 commit comments