With python-2.6, importing the Crypto.Hash.MD5 and Crypto.Hash.SHA modules
authorZac Medico <zmedico@gentoo.org>
Sat, 8 Nov 2008 05:12:04 +0000 (05:12 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 8 Nov 2008 05:12:04 +0000 (05:12 -0000)
commit81739be6afceb08ab2b47416634fa2eca79840ba
treee23d4ddb93d10244345e9b0b776d5c4df108d355
parentb2f120b00424d222530f4a9ba0bd39fb87353527
With python-2.6, importing the Crypto.Hash.MD5 and Crypto.Hash.SHA modules
from pycrypto triggers warnings since those modules are implemented using
the deprecated md5 and sha modules from python's stdlib. So, in order to
avoid the warning and the inferior hash implementations that come with them,
never use these particular modules from pycrypto. Instead, use hashlib or
directly use stdlib's md5 and sha modules if necessary. Thanks to Markus
Peloquin for reporting.

svn path=/main/trunk/; revision=11828
pym/portage/checksum.py