Staging
v0.5.1
https://github.com/python/cpython
Revision abe74feb912292aa4df4e70d39e85d0bcd425436 authored by Serhiy Storchaka on 05 December 2018, 21:10:36 UTC, committed by GitHub on 05 December 2018, 21:10:36 UTC
(cherry picked from commit 4edeaeac4c194ba5d09187640b5cfca5e03be617)

Co-authored-by: Srinivas  Thatiparthy (శ్రీనివాస్  తాటిపర్తి) <thatiparthysreenivas@gmail.com>
1 parent c6639cd
Raw File
Tip revision: abe74feb912292aa4df4e70d39e85d0bcd425436 authored by Serhiy Storchaka on 05 December 2018, 21:10:36 UTC
[2.7] bpo-35250: Correct argument name "num" -> "btn" in turtle docs. (GH-10565). (GH-10943)
Tip revision: abe74fe
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