catacomb/__init__.py: Make KMAC `copy' work.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 17 Nov 2019 03:14:51 +0000 (03:14 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 22 Nov 2019 22:18:12 +0000 (22:18 +0000)
commit688625b6d288ff893f5e96dd3bd7f10110e23639
tree1c42f9b230c03328d154334086b1e07bffab0044
parent7206d4d5c2a0c21902abb968ab0cfe73cabe356e
catacomb/__init__.py: Make KMAC `copy' work.

Two fixes needed:

  * Return the `new' object from `copy'.

  * Introduce a `_bare_new' class method to handle constructing the
    destination object, because `KMAC...' objects need a key argument.
catacomb/__init__.py