Skip to content

bpo-33604: Bump removal notice from 3.6 to 3.8#7062

Merged
gpshead merged 2 commits into
python:masterfrom
Carreau:bump-hmac-removal-notice
May 22, 2018
Merged

bpo-33604: Bump removal notice from 3.6 to 3.8#7062
gpshead merged 2 commits into
python:masterfrom
Carreau:bump-hmac-removal-notice

Conversation

@Carreau
Copy link
Copy Markdown
Contributor

@Carreau Carreau commented May 22, 2018

Also change from PendingDeprecationWarning to DeprecationWarning.

https://bugs.python.org/issue33604

Copy link
Copy Markdown
Member

@gpshead gpshead left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ned-deily are we okay bringing this old PendingDeprecationWarning -> DeprecationWarning change into 3.7?

Comment thread Lib/hmac.py
if digestmod is None:
_warnings.warn("HMAC() without an explicit digestmod argument "
"is deprecated.", PendingDeprecationWarning, 2)
"is deprecated since Python 3.4, and will be removed "
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd be inclined to leave the warning text as is w/o mentioning version numbers there. leave the versions to the docs.

@ned-deily
Copy link
Copy Markdown
Member

It's late in the game for 3.7 but, since we've said we were going to do in previous releases and there is an easy way to avoid the warning (just add an explicit digestmod), I'll go out on a limb and approve this for 3.7.0.

@gpshead gpshead merged commit 8bb0b5b into python:master May 22, 2018
@miss-islington
Copy link
Copy Markdown
Contributor

Thanks @Carreau for the PR, and @gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 22, 2018
bpo-33604: Bump removal notice from 3.6 to 3.8 and change PendingDeprecationWarning to DeprecationWarning as we had intended to do earlier...
(cherry picked from commit 8bb0b5b)

Co-authored-by: Matthias Bussonnier <bussonniermatthias@gmail.com>
@bedevere-bot
Copy link
Copy Markdown

GH-7065 is a backport of this pull request to the 3.7 branch.

miss-islington added a commit that referenced this pull request May 22, 2018
bpo-33604: Bump removal notice from 3.6 to 3.8 and change PendingDeprecationWarning to DeprecationWarning as we had intended to do earlier...
(cherry picked from commit 8bb0b5b)

Co-authored-by: Matthias Bussonnier <bussonniermatthias@gmail.com>
@Carreau
Copy link
Copy Markdown
Contributor Author

Carreau commented May 23, 2018

It's late in the game for 3.7 but, since we've said we were going to do in previous releases and there is an easy way to avoid the warning (just add an explicit digestmod), I'll go out on a limb and approve this for 3.7.0.

Thanks I'v appreciate, extra kudos for being the release manager and doing all you are doing.

I'd be inclined to leave the warning text as is w/o mentioning version numbers there. leave the versions to the docs.

Ok, now that's it's merged I won't remove it, but personally when I see a deprecation, the version number since deprecation is about the only thing that is of interest, to know wether I need to have conditional code or not depending on Python version and how pressing it is. If I have to go pull the docs and look for that information I likely won't bother. It also make searching for deprecated features that need removal pretty easy...

Anyway thanks a gain and looking forward to to 3.7 !

@Carreau Carreau deleted the bump-hmac-removal-notice branch October 20, 2025 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants