gh-153967: handle invalid file object in argparse._print_message#153969
gh-153967: handle invalid file object in argparse._print_message#153969ptim0626 wants to merge 11 commits into
Conversation
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
|
This is also a user-facing change; please add a news entry. |
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
Thanks, and this was added. |
|
Now I have no idea why |
|
That would be #154106. I just updated the branch, which should fix it. |
|
The merge fixed the |
|
No worries. |
The fix for the above issue, which raises a
ValueErrorif an invalidfileis explicitly passed toargparse.print_usageandargparse.print_help. Tests added.