Skip to content
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

Rename Process.connections() to Process.net_connections() #2407

Closed
giampaolo opened this issue Apr 18, 2024 · 0 comments · Fixed by #2408
Closed

Rename Process.connections() to Process.net_connections() #2407

giampaolo opened this issue Apr 18, 2024 · 0 comments · Fixed by #2408

Comments

@giampaolo
Copy link
Owner

Why: in order to be consistent with psutil.net_connections(). psutil.Process.connections() was wrongly named, it should have kept the net_ prefix.

The old method name will be left in place and work as an alias for the new name. At the same time it will also raise a DeprecationWarning.

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

Successfully merging a pull request may close this issue.

1 participant