Backport importlib to at least Python 2.5 by getting rid of use of str.format.
[python.git] / Lib / md5.py
bloba44ca3b49340283afa075b12b3abd7ed0bbf8815
1 # $Id$
3 # Copyright (C) 2005 Gregory P. Smith (greg@krypto.org)
4 # Licensed to PSF under a Contributor Agreement.
6 import warnings
7 warnings.warn("the md5 module is deprecated; use hashlib instead",
8 DeprecationWarning, 2)
10 from hashlib import md5
11 new = md5
13 blocksize = 1 # legacy value (wrong in any useful sense)
14 digest_size = 16