Merge pull request #6006 from atugushev/update-doc-contextlib2
Update doc to use contextlib2.nullcontext
This commit is contained in:
commit
2e11ea6108
|
@ -678,4 +678,4 @@ Or, if desired, you can ``pip install contextlib2`` and use:
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
from contextlib2 import ExitStack as does_not_raise
|
from contextlib2 import nullcontext as does_not_raise
|
||||||
|
|
Loading…
Reference in New Issue