8000 gh-91217: deprecate spwd by brettcannon · Pull Request #91846 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-91217: deprecate spwd #91846

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 23, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update Modules/spwdmodule.c
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
  • Loading branch information
brettcannon and hugovk authored Apr 23, 2022
commit 303896b410a5c326c04fc53264490b07534a0e54
2 changes: 1 addition & 1 deletion Modules/spwdmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ PyMODINIT_FUNC
PyInit_spwd(void)
{
if (PyErr_WarnEx(PyExc_DeprecationWarning,
"'nis' is deprecated and slated for removal in "
"'spwd' is deprecated and slated for removal in "
"Python 3.13",
7)) {
Copy link
Member

Choose a reason for hiding this comment

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

Why do you use stack level 7 ?

Copy link
Member Author
@brettcannon brettcannon Apr 23, 2022

Choose a reason for hiding this comment

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

It seems to be what it takes for the traceback to show the import statement and not some internal detail of importlib.

return NULL;
Expand Down
0