[Django] #27793: Use the new ipaddress module for IP validation

30 views
Skip to first unread message

Django

unread,
Jan 29, 2017, 2:12:24 PM1/29/17
to django-...@googlegroups.com
#27793: Use the new ipaddress module for IP validation
------------------------------------------------+------------------------
Reporter: Claude Paroz | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Utilities | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
Python 3.4 and up have a new ipaddress module that we could use to replace
the validation code in IP address validators.
https://docs.python.org/3/library/ipaddress.html

--
Ticket URL: <https://code.djangoproject.com/ticket/27793>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jan 29, 2017, 2:22:30 PM1/29/17
to django-...@googlegroups.com
#27793: Use the new ipaddress module for IP validation
-------------------------------------+-------------------------------------

Reporter: Claude Paroz | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Utilities | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Claude Paroz):

* has_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/27793#comment:1>

Django

unread,
Jan 30, 2017, 8:10:18 AM1/30/17
to django-...@googlegroups.com
#27793: Use Python's ipaddress module for IP validation
-------------------------------------+-------------------------------------

Reporter: Claude Paroz | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Utilities | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

* stage: Unreviewed => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/27793#comment:2>

Django

unread,
Jan 30, 2017, 8:24:18 AM1/30/17
to django-...@googlegroups.com
#27793: Use Python's ipaddress module for IP validation
-------------------------------------+-------------------------------------

Reporter: Claude Paroz | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: Utilities | Version: master
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Claude Paroz <claude@…>):

* status: new => closed
* resolution: => fixed


Comment:

In [changeset:"277a4dd4b4cc2a2cad77139882f084480751a95a" 277a4dd4]:
{{{
#!CommitTicketReference repository=""
revision="277a4dd4b4cc2a2cad77139882f084480751a95a"
Fixed #27793 -- Used stdlib's ipaddress module to validate IP addresses

Thanks Tim Graham for the review.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/27793#comment:3>

Reply all
Reply to author
Forward
0 new messages