Staging
v0.5.1
https://github.com/python/cpython
Revision 594a046b88abf26c2c2a314ca5b54e4c808ba801 authored by Antoine Pitrou on 31 October 2010, 13:05:48 UTC, committed by Antoine Pitrou on 31 October 2010, 13:05:48 UTC
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85982 | antoine.pitrou | 2010-10-30 18:19:14 +0200 (sam., 30 oct. 2010) | 4 lines

  Issue #10253: FileIO leaks a file descriptor when trying to open a file
  for append that isn't seekable.  Patch by Brian Brazil.
........
1 parent e27731d
Raw File
Tip revision: 594a046b88abf26c2c2a314ca5b54e4c808ba801 authored by Antoine Pitrou on 31 October 2010, 13:05:48 UTC
Merged revisions 85982 via svnmerge from
Tip revision: 594a046
md5.py
# $Id$
#
#  Copyright (C) 2005   Gregory P. Smith (greg@krypto.org)
#  Licensed to PSF under a Contributor Agreement.

import warnings
warnings.warn("the md5 module is deprecated; use hashlib instead",
                DeprecationWarning, 2)

from hashlib import md5
new = md5

blocksize = 1        # legacy value (wrong in any useful sense)
digest_size = 16
back to top