mirror of
https://github.com/jazzband/contextlib2.git
synced 2026-05-28 08:18:17 +00:00
Remove unnecessary colons
This commit is contained in:
parent
dbfcb44e47
commit
3fbd301c64
1 changed files with 3 additions and 3 deletions
|
|
@ -216,7 +216,7 @@ API Reference
|
||||||
an exception, then outer callbacks will be passed arguments based on that
|
an exception, then outer callbacks will be passed arguments based on that
|
||||||
updated state.
|
updated state.
|
||||||
|
|
||||||
.. method:: enter_context(cm):
|
.. method:: enter_context(cm)
|
||||||
|
|
||||||
Enters a new context manager and adds its :meth:`__exit__` method to
|
Enters a new context manager and adds its :meth:`__exit__` method to
|
||||||
the callback stack. The return value is the result of the context
|
the callback stack. The return value is the result of the context
|
||||||
|
|
@ -225,7 +225,7 @@ API Reference
|
||||||
These context managers may suppress exceptions just as they normally
|
These context managers may suppress exceptions just as they normally
|
||||||
would if used directly as part of a ``with`` statement.
|
would if used directly as part of a ``with`` statement.
|
||||||
|
|
||||||
.. method:: register_exit(callback):
|
.. method:: register_exit(callback)
|
||||||
|
|
||||||
Directly accepts a callback with the same signature as a
|
Directly accepts a callback with the same signature as a
|
||||||
context manager's :meth:`__exit__` method and adds it to the callback
|
context manager's :meth:`__exit__` method and adds it to the callback
|
||||||
|
|
@ -234,7 +234,7 @@ API Reference
|
||||||
By returning true values, these callbacks can suppress exceptions the
|
By returning true values, these callbacks can suppress exceptions the
|
||||||
same way context manager :meth:`__exit__` methods can.
|
same way context manager :meth:`__exit__` methods can.
|
||||||
|
|
||||||
.. method:: push_callback(callback, *args, **kwds):
|
.. method:: push_callback(callback, *args, **kwds)
|
||||||
|
|
||||||
Accepts an arbitrary callback function and arguments and adds it to
|
Accepts an arbitrary callback function and arguments and adds it to
|
||||||
the callback stack.
|
the callback stack.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue