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

gh-82836: fix private network check #97733

Merged
merged 7 commits into from Nov 29, 2022
Merged

Conversation

JamoBox
Copy link
Contributor

@JamoBox JamoBox commented Oct 2, 2022

Fixes private checks for network objects. The previous method would incorrectly return True for a private check in cases such as "0.0.0.0/0".

Fixes private checks for network objects. The previous method would incorrectly return True for a private check in cases such as "0.0.0.0/0".
JamoBox and others added 2 commits Oct 4, 2022
…YLmC.rst

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
@JamoBox
Copy link
Contributor Author

JamoBox commented Nov 15, 2022

@JelleZijlstra / @ammaraskar - are you able to take a look at this with the fixes in mind?

@JelleZijlstra JelleZijlstra self-requested a review Nov 15, 2022
Copy link
Member

@JelleZijlstra JelleZijlstra left a comment

The code looks good and the tests are thorough, but I'm not sufficiently familiar with the module to merge this.

Lib/test/test_ipaddress.py Show resolved Hide resolved
Lib/test/test_ipaddress.py Show resolved Hide resolved
@gpshead gpshead added type-bug An unexpected behavior, bug, or error stdlib Python modules in the Lib dir needs backport to 3.11 labels Nov 29, 2022
@gpshead gpshead merged commit ed39109 into python:main Nov 29, 2022
15 checks passed
@miss-islington
Copy link
Contributor

miss-islington commented Nov 29, 2022

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

@bedevere-bot
Copy link

bedevere-bot commented Nov 29, 2022

GH-99887 is a backport of this pull request to the 3.11 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 29, 2022
Fixes private checks for network objects. The previous method would incorrectly return True for a private check in cases such as "0.0.0.0/0".
(cherry picked from commit ed39109)

Co-authored-by: Pete Wicken <2273100+JamoBox@users.noreply.github.com>
miss-islington added a commit that referenced this pull request Nov 29, 2022
Fixes private checks for network objects. The previous method would incorrectly return True for a private check in cases such as "0.0.0.0/0".
(cherry picked from commit ed39109)

Co-authored-by: Pete Wicken <2273100+JamoBox@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants