chiark / gitweb /
make-secnet-sites: Switch to `ipaddress' from `ipaddr'
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 24 Oct 2019 18:03:59 +0000 (19:03 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 24 Oct 2019 18:16:16 +0000 (19:16 +0100)
commit2daad77ec25127315fde68729434a598b139afa0
treea92bfe75a11714c653dbe20e50c8b0f3157f528b
parent92eddd582b64891d360ad7bbafdc1e228ee2037e
make-secnet-sites: Switch to `ipaddress' from `ipaddr'

ipaddress is available in python3 and ipaddr is not.

Code changes:
 - Change the imports and references to the module name
 - IPNetwork & IPAddress functions => ip_address & ip_network
 - There is no IPNetwork superclass so don't mention it in docstrings
 - collapse_address_list => collapse_addresses
 - There is no version parameter to ip_address; we have to
   switch on v ourselves and call IPv6Address or IPv4Address

Administrivia:
 - Update debian/control and INSTALL.
 - Remove references to ipaddr's licence.  ipaddress is under
   the same licence as python so does not need special mention.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
INSTALL
debian/control
ipaddrset-test.py
ipaddrset.py
make-secnet-sites