chiark / gitweb /
make-secnet-sites: Apply list() to keys in delempty
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 24 Oct 2019 16:18:37 +0000 (17:18 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 24 Oct 2019 18:16:16 +0000 (19:16 +0100)
commit92eddd582b64891d360ad7bbafdc1e228ee2037e
treedbdec54cd454b4923d443e6e7a2e5ddb998c062a
parent9d9a15df4db544958869f112af7dc5ea7403e5be
make-secnet-sites: Apply list() to keys in delempty

It is not permitted (in Python3) to modify a dictionary like this,
while iterating over keys().  We have to make a list of the keys,
copying them.

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