Commit 8c9da890 authored by Raymond Hettinger's avatar Raymond Hettinger

Issue 21558: Fix a typo in the contextlib docs

parent 67903844
......@@ -371,7 +371,7 @@ some of the context managers being optional::
with ExitStack() as stack:
for resource in resources:
stack.enter_context(resource)
if need_special resource:
if need_special_resource():
special = acquire_special_resource()
stack.callback(release_special_resource, special)
# Perform operations that use the acquired resources
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment