mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
gh-120128: fix description of argument to ipaddress.collapse_addresses() (#120131)
The argument to collapse_addresses() is now described as an *iterable* (rather than *iterator*).
This commit is contained in:
parent
e83ce850f4
commit
f878d46e56
2 changed files with 2 additions and 2 deletions
|
@ -310,7 +310,7 @@ def collapse_addresses(addresses):
|
|||
[IPv4Network('192.0.2.0/24')]
|
||||
|
||||
Args:
|
||||
addresses: An iterator of IPv4Network or IPv6Network objects.
|
||||
addresses: An iterable of IPv4Network or IPv6Network objects.
|
||||
|
||||
Returns:
|
||||
An iterator of the collapsed IPv(4|6)Network objects.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue