mirror of https://github.com/python/cpython
Fix code example to have valid syntax so that it can be highlighted.
This commit is contained in:
parent
bb091e733c
commit
1e518258c9
|
@ -554,7 +554,7 @@ integer handle, and also disconnect the Windows handle from the handle object.
|
|||
:keyword:`with` statement::
|
||||
|
||||
with OpenKey(HKEY_LOCAL_MACHINE, "foo") as key:
|
||||
# ... work with key ...
|
||||
... # work with key
|
||||
|
||||
will automatically close *key* when control leaves the :keyword:`with` block.
|
||||
|
||||
|
|
Loading…
Reference in New Issue