Skip to content

gh-141540: use %r instead of %s in error messages #141540 - #141712

Closed
literally-user wants to merge 1 commit into
python:mainfrom
literally-user:fix-issue-141540
Closed

literally-user wants to merge 1 commit into
python:mainfrom
literally-user:fix-issue-141540

Conversation

@literally-user

@literally-user literally-user commented Nov 18, 2025 •

Copy link
Copy Markdown

Changed the ValueError in _strptime.py to use %r instead of %s, so trailing whitespace or other hidden characters are clearly visible in the error message.

@python-cla-bot

python-cla-bot Bot commented Nov 18, 2025 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app

bedevere-app Bot commented Nov 18, 2025

Copy link
Copy Markdown

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 skip news label instead.

@StanFromIreland

Copy link
Copy Markdown
Member

There is already a PR open, #141541? I am closing in favour of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants