repo.or.cz
/
python.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Catch situations where currentframe() returns None. See SF patch #1447410, this is...
[python.git]
/
Lib
/
sha.py
blob
9d914a9b532b5890bed51e0f552d4a1937b7095f
1
# $Id$
2
#
3
# Copyright (C) 2005 Gregory P. Smith (greg@electricrain.com)
4
# Licensed to PSF under a Contributor Agreement.
5
6
from
hashlib
import
sha1
as
sha
7
new
=
sha
8
9
blocksize
=
1
# legacy value (wrong in any useful sense)
10
digest_size
=
20
11
digestsize
=
20