Commit 16f85234 authored by s-sanjay's avatar s-sanjay Committed by Xiang Zhang

bpo-29913: deprecate compare_networks() in documentation (GH-865)

parent 84b8e92e
...@@ -554,6 +554,9 @@ so to avoid duplication they are only documented for :class:`IPv4Network`. ...@@ -554,6 +554,9 @@ so to avoid duplication they are only documented for :class:`IPv4Network`.
>>> ip_network('192.0.2.1/32').compare_networks(ip_network('192.0.2.1/32')) >>> ip_network('192.0.2.1/32').compare_networks(ip_network('192.0.2.1/32'))
0 0
.. deprecated:: 3.7
It uses the same ordering and comparison algorithm as "<", "==", and ">"
.. class:: IPv6Network(address, strict=True) .. class:: IPv6Network(address, strict=True)
......
No preview for this file type
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment