diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-02 13:12:09 -0700 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-02 13:12:09 -0700 |
| commit | 7548aa8ffd46eb6e0f73730d1b2eb515ba581f95 (patch) | |
| tree | 963393779f4c8c33351ea605f708f8da7d9f70bf /django/utils/ipv6.py | |
| parent | 65c4ac3b2434d1828cb76c9f4454fe64e81354ee (diff) | |
More attacking E302 violators
Diffstat (limited to 'django/utils/ipv6.py')
| -rw-r--r-- | django/utils/ipv6.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/django/utils/ipv6.py b/django/utils/ipv6.py index 4d5352272b..0aaa326c01 100644 --- a/django/utils/ipv6.py +++ b/django/utils/ipv6.py @@ -5,6 +5,7 @@ from django.core.exceptions import ValidationError from django.utils.translation import ugettext_lazy as _ from django.utils.six.moves import xrange + def clean_ipv6_address(ip_str, unpack_ipv4=False, error_message=_("This is not a valid IPv6 address.")): """ @@ -123,6 +124,7 @@ def _sanitize_ipv4_mapping(ip_str): return result + def _unpack_ipv4(ip_str): """ Unpack an IPv4 address that was mapped in a compressed IPv6 address. @@ -141,6 +143,7 @@ def _unpack_ipv4(ip_str): return ip_str.rsplit(':', 1)[1] + def is_valid_ipv6_address(ip_str): """ Ensure we have a valid IPv6 address. |
