Staging
v0.5.1
https://github.com/python/cpython
Revision c21d0cb6cf1c32158a37772545fb71e730ab1323 authored by Gregory P. Smith on 01 March 2010, 04:40:36 UTC, committed by Gregory P. Smith on 01 March 2010, 04:40:36 UTC
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r78527 | gregory.p.smith | 2010-02-28 17:22:39 -0800 (Sun, 28 Feb 2010) | 4 lines

  Issue #7242: On Solaris 9 and earlier calling os.fork() from within a
  thread could raise an incorrect RuntimeError about not holding the import
  lock.  The import lock is now reinitialized after fork.
........
  r78531 | gregory.p.smith | 2010-02-28 18:31:33 -0800 (Sun, 28 Feb 2010) | 2 lines

  Fix for r78527.  It left out updating forkpty.
........
1 parent 56f1682
Raw File
Tip revision: c21d0cb6cf1c32158a37772545fb71e730ab1323 authored by Gregory P. Smith on 01 March 2010, 04:40:36 UTC
Merged revisions 78527,78531 via svnmerge from
Tip revision: c21d0cb
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