chiark / gitweb /
make-secnet-sites etc.: Use unicode
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 18 Oct 2019 23:40:17 +0000 (00:40 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 24 Oct 2019 18:16:16 +0000 (19:16 +0100)
commit9d9a15df4db544958869f112af7dc5ea7403e5be
tree52a0fd2be969cbb99634d0fe2d3438c34c87db8f
parent58957a596533797cb9502de88cd84003abeb06f7
make-secnet-sites etc.: Use unicode

We are going to want to switch to ipaddress from ipaddr, since
ipaddress is available in python3.  But ipaddress insists on unicode
strings, even in python2.  ipaddr doesn't mind them.

So make everything be unicode.  In particular: all of our literals and
all of our io streams.  We wrap up io.open(), which is a compatibility
thing from python-future.

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