mirror of
https://github.com/jazzband/contextlib2.git
synced 2026-03-16 21:50:24 +00:00
Fix method name in docs
This commit is contained in:
parent
3fbd301c64
commit
22bbb22d21
1 changed files with 1 additions and 1 deletions
|
|
@ -234,7 +234,7 @@ API Reference
|
|||
By returning true values, these callbacks can suppress exceptions the
|
||||
same way context manager :meth:`__exit__` methods can.
|
||||
|
||||
.. method:: push_callback(callback, *args, **kwds)
|
||||
.. method:: register(callback, *args, **kwds)
|
||||
|
||||
Accepts an arbitrary callback function and arguments and adds it to
|
||||
the callback stack.
|
||||
|
|
|
|||
Loading…
Reference in a new issue