github.com/grumpyhome/grumpy@v0.3.1-0.20201208125205-7b775405bdf1/grumpy-runtime-src/third_party/stdlib/sha.py (about) 1 # $Id$ 2 # 3 # Copyright (C) 2005 Gregory P. Smith (greg@krypto.org) 4 # Licensed to PSF under a Contributor Agreement. 5 6 # import warnings 7 # warnings.warn("the sha module is deprecated; use the hashlib module instead", 8 # DeprecationWarning, 2) 9 10 import _sha 11 12 sha = _sha.new 13 new = _sha.new 14 15 blocksize = 1 # legacy value (wrong in any useful sense) 16 digest_size = 20 17 digestsize = 20