There will be about 1h of downtime on 2020-03-02 at 13:00 UTC+1 (change of servers and upgrade to Heptapod 0.20.0 final)

Commit 3d3c2a42 authored by fijal's avatar fijal

rename Hash to HASH to match cpython

parent 4359dd7f3755
Pipeline #15596 passed with stage
in 7 minutes and 14 seconds
......@@ -9,11 +9,11 @@ except ImportError: builtinify = lambda f: f
def new(name, string=b''):
h = Hash(name)
h = HASH(name)
h.update(string)
return h
class Hash(object):
class HASH(object):
def __init__(self, name, copy_from=None):
self.ctx = ffi.NULL
......@@ -67,7 +67,7 @@ class Hash(object):
def copy(self):
"""Return a copy of the hash object."""
with self.lock:
return Hash(self.name, copy_from=self.ctx)
return HASH(self.name, copy_from=self.ctx)
def digest(self):
"""Return the digest value as a string of binary data."""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment