Staging
v0.8.1
https://github.com/python/cpython
Revision b3b0049c5998ff27df05e29e3225a19e63202b62 authored by Stefan Krah on 27 November 2010, 11:49:05 UTC, committed by Stefan Krah on 27 November 2010, 11:49:05 UTC
........
  r86829 | stefan.krah | 2010-11-27 12:44:18 +0100 (Sat, 27 Nov 2010) | 1 line

  Fix additional leaks.
........
1 parent bb1fb7d
Raw File
Tip revision: b3b0049c5998ff27df05e29e3225a19e63202b62 authored by Stefan Krah on 27 November 2010, 11:49:05 UTC
Blocked revisions 86829 via svnmerge
Tip revision: b3b0049
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