Staging
v0.8.1
https://github.com/python/cpython
Revision 4403d501ac0365c0ea7cd948fcba344ab014a878 authored by Benjamin Peterson on 14 December 2016, 07:30:16 UTC, committed by Benjamin Peterson on 14 December 2016, 07:30:16 UTC
1 parent d1aad3f
Raw File
Tip revision: 4403d501ac0365c0ea7cd948fcba344ab014a878 authored by Benjamin Peterson on 14 December 2016, 07:30:16 UTC
revert a37cc3d926ec (#5322)
Tip revision: 4403d50
sha.py
# $Id$
#
#  Copyright (C) 2005   Gregory P. Smith (greg@krypto.org)
#  Licensed to PSF under a Contributor Agreement.

import warnings
warnings.warn("the sha module is deprecated; use the hashlib module instead",
                DeprecationWarning, 2)

from hashlib import sha1 as sha
new = sha

blocksize = 1        # legacy value (wrong in any useful sense)
digest_size = 20
digestsize = 20
back to top