Skip to content

Commit

Permalink
make post_mortem posonly
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau committed Aug 26, 2023
1 parent 6846fe5 commit cf7c270
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Doc/library/pdb.rst
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ slightly different way:
The keyword-only argument *header*.


.. function:: post_mortem(tb_or_exc=None)
.. function:: post_mortem(tb_or_exc=None, /)

Enter post-mortem debugging of the given *traceback*, or *exception* object.
If no argument is given, it uses the one of the exception that is currently
Expand Down
2 changes: 1 addition & 1 deletion Lib/pdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -1996,7 +1996,7 @@ def set_trace(*, header=None):

# Post-Mortem interface

def post_mortem(tb_or_exc=None):
def post_mortem(tb_or_exc=None, /):
"""Enter post-mortem debugging of the given *traceback*, or *exception*
object.
Expand Down

0 comments on commit cf7c270

Please sign in to comment.