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.
1 parent 978c6ab commit e8e2df3Copy full SHA for e8e2df3
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