Staging
v0.5.1
https://github.com/python/cpython
Revision 66807853b439ceb3a119256ebb6b7187abf6aed2 authored by Eric Smith on 24 February 2010, 14:27:37 UTC, committed by Eric Smith on 24 February 2010, 14:27:37 UTC
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r78418 | eric.smith | 2010-02-24 09:15:36 -0500 (Wed, 24 Feb 2010) | 1 line

  Issue #7309: Unchecked pointer access when converting UnicodeEncodeError, UnicodeDecodeError, and UnicodeTranslateError to strings.
........
1 parent 5b06ecf
Raw File
Tip revision: 66807853b439ceb3a119256ebb6b7187abf6aed2 authored by Eric Smith on 24 February 2010, 14:27:37 UTC
Merged revisions 78418 via svnmerge from
Tip revision: 6680785
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