diff --git a/Doc/library/ipaddress.rst b/Doc/library/ipaddress.rst index 9e887d8e65741b..005bdf899a542a 100644 --- a/Doc/library/ipaddress.rst +++ b/Doc/library/ipaddress.rst @@ -363,9 +363,7 @@ write code that handles both IP versions correctly. Address objects are .. attribute:: is_site_local ``True`` if the address is reserved for site-local usage. Note that - the site-local address space has been deprecated by :RFC:`3879`. Use - :attr:`~IPv4Address.is_private` to test if this address is in the - space of unique local addresses as defined by :RFC:`4193`. + the site-local address space has been deprecated by :RFC:`3879`. .. attribute:: ipv4_mapped diff --git a/Lib/ipaddress.py b/Lib/ipaddress.py index 8b60b9d5c9cd51..93f86a12f8c624 100644 --- a/Lib/ipaddress.py +++ b/Lib/ipaddress.py @@ -2075,8 +2075,6 @@ def is_site_local(self): """Test if the address is reserved for site-local. Note that the site-local address space has been deprecated by RFC 3879. - Use is_private to test if this address is in the space of unique local - addresses as defined by RFC 4193. Returns: A boolean, True if the address is reserved per RFC 3513 2.5.6. @@ -2355,8 +2353,6 @@ def is_site_local(self): """Test if the address is reserved for site-local. Note that the site-local address space has been deprecated by RFC 3879. - Use is_private to test if this address is in the space of unique local - addresses as defined by RFC 4193. Returns: A boolean, True if the address is reserved per RFC 3513 2.5.6.