Skip to content

gh-155193: Add missing canonical parameter to urlsafe_b64decode() - #155197

Closed
VITA2aishu wants to merge 1 commit into
python:mainfrom
VITA2aishu:3.16
Closed

gh-155193: Add missing canonical parameter to urlsafe_b64decode()#155197
VITA2aishu wants to merge 1 commit into
python:mainfrom
VITA2aishu:3.16

Conversation

@VITA2aishu

@VITA2aishu VITA2aishu commented Aug 5, 2026

Copy link
Copy Markdown

The what's new entry for 3.15 documents canonical=False being added to b32decode(), b32hexdecode(), b64decode(), urlsafe_b64decode(), a85decode(), b85decode(), and z85decode() (gh-146311), but urlsafe_b64decode() did not actually receive the parameter.

Add canonical=False to urlsafe_b64decode()'s signature and pass it through to binascii.a2b_base64(), consistent with b64decode(). The default preserves existing behavior.

The what's new entry for 3.15 documents canonical=False being added
to b32decode(), b32hexdecode(), b64decode(), urlsafe_b64decode(),
a85decode(), b85decode(), and z85decode() (pythongh-146311), but
urlsafe_b64decode() did not actually receive the parameter.

Add canonical=False to urlsafe_b64decode()'s signature and pass it
through to binascii.a2b_base64(), consistent with b64decode(). The
default preserves existing behavior.
@bedevere-app

bedevere-app Bot commented Aug 5, 2026

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.

@python-cla-bot

python-cla-bot Bot commented Aug 5, 2026

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app

bedevere-app Bot commented Aug 5, 2026

Copy link
Copy Markdown

PRs attempting to merge a maintenance branch into the main branch are deemed to be spam and automatically closed. If you were attempting to report a bug, please go to https://github.com/python/cpython/issues; see devguide.python.org for further instruction as needed.

@StanFromIreland

Copy link
Copy Markdown
Member

Hmm, well that's a bug. However, please don't open PRs before a decision is made.

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