Source

pypy / lib_pypy / _sha.py

The branch 'stm-gc' does not exist.
Diff from to

File lib_pypy/_sha.py

 #!/usr/bin/env python
-# -*- coding: iso-8859-1
+# -*- coding: iso-8859-1 -*-
 
 # Note that PyPy contains also a built-in module 'sha' which will hide
 # this one if compiled in.
     "An implementation of the MD5 hash function in pure Python."
 
     digest_size = digestsize = 20
+    block_size = 1
 
     def __init__(self):
         "Initialisation."
 
 # ======================================================================
 # Mimic Python top-level functions from standard library API
-# for consistency with the md5 module of the standard library.
+# for consistency with the _sha module of the standard library.
 # ======================================================================
 
 # These are mandatory variables in the module. They have constant values
 # in the SHA standard.
 
-digest_size = digestsize = 20
+digest_size = 20
+digestsize = 20
 blocksize = 1
 
 def new(arg=None):