diff options
author | Eli Bendersky <eliben@gmail.com> | 2012-10-07 14:23:50 (GMT) |
---|---|---|
committer | Eli Bendersky <eliben@gmail.com> | 2012-10-07 14:23:50 (GMT) |
commit | 948af23a77c41bfa77da89aa138d8a4f4111df99 (patch) | |
tree | 847db232d4c8981eeaab28055d3626899d87e477 /Lib | |
parent | f4c2757d784907165e37446276138eaef5bd69ee (diff) | |
download | cpython-948af23a77c41bfa77da89aa138d8a4f4111df99.zip cpython-948af23a77c41bfa77da89aa138d8a4f4111df99.tar.gz cpython-948af23a77c41bfa77da89aa138d8a4f4111df99.tar.bz2 |
Issue #15888: fixing problems in ipaddress doctests. Patch by Chris Jerdonek
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/ipaddress.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/ipaddress.py b/Lib/ipaddress.py index 22efb09..532e44e 100644 --- a/Lib/ipaddress.py +++ b/Lib/ipaddress.py @@ -206,10 +206,11 @@ def summarize_address_range(first, last): """Summarize a network range given the first and last IP addresses. Example: - >>> summarize_address_range(IPv4Address('192.0.2.0'), - IPv4Address('192.0.2.130')) + >>> list(summarize_address_range(IPv4Address('192.0.2.0'), + ... IPv4Address('192.0.2.130'))) + ... #doctest: +NORMALIZE_WHITESPACE [IPv4Network('192.0.2.0/25'), IPv4Network('192.0.2.128/31'), - IPv4Network('192.0.2.130/32')] + IPv4Network('192.0.2.130/32')] Args: first: the first IPv4Address or IPv6Address in the range. |