Skip to content

argparse: Unexpanded replacements in "unknown action" exception #134970

Closed
@mgorny

Description

@mgorny

Bug report

Bug description:

cpython/Lib/argparse.py

Lines 1536 to 1537 in ad39f01

if not callable(action_class):
raise ValueError('unknown action {action_class!r}')

There is a missing f there, so the replacements don't happen. Noticed accidentally because it broke snakeoil's test suite.

CPython versions tested on:

3.14, CPython main branch

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.14bugs and security fixes3.15new features, bugs and security fixesstdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    Doc issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions