Staging
v0.5.1
https://github.com/python/cpython
Revision ecab623e1315cd0cfbe01e046e618001fe315490 authored by Georg Brandl on 06 September 2006, 06:47:02 UTC, committed by Georg Brandl on 06 September 2006, 06:47:02 UTC
Also make sure that every exception class has __module__ set to
'exceptions'.
 (backport)
1 parent 37a9e57
Raw File
Tip revision: ecab623e1315cd0cfbe01e046e618001fe315490 authored by Georg Brandl on 06 September 2006, 06:47:02 UTC
Bug #1542051: Exceptions now correctly call PyObject_GC_UnTrack.
Tip revision: ecab623
sha.py
# $Id$
#
#  Copyright (C) 2005   Gregory P. Smith (greg@electricrain.com)
#  Licensed to PSF under a Contributor Agreement.

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