chiark
/
gitweb
/
~mdw
/
catacomb-python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9b5c981
)
catacomb/__init__.py (_ShakeBase._copy): Actally copy the hash state.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 14 Oct 2019 00:04:46 +0000
(
01:04
+0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Fri, 22 Nov 2019 22:18:12 +0000
(22:18 +0000)
Rather than sharing because that doesn't end well.
catacomb/__init__.py
patch
|
blob
|
blame
|
history
diff --git
a/catacomb/__init__.py
b/catacomb/__init__.py
index 6ae106210faec1c852d77f856d2cfc37f2454c04..ff771b9a051c0b0bbe76ac91c8d1e27bc7c9db54 100644
(file)
--- a/
catacomb/__init__.py
+++ b/
catacomb/__init__.py
@@
-238,7
+238,7
@@
class _ShakeBase (_HashBase):
## Delegate methods...
def copy(me): new = me.__class__(); new._copy(me)
- def _copy(me, other): me._h = other._h
+ def _copy(me, other): me._h = other._h
.copy()
def hash(me, m): me._h.hash(m); return me
def xof(me): me._h.xof(); return me
def get(me, n): return me._h.get(n)