Avoid python-2.6 deprecation warnings for md5 and sha modules by trying
authorZac Medico <zmedico@gentoo.org>
Mon, 30 Jun 2008 03:18:07 +0000 (03:18 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 30 Jun 2008 03:18:07 +0000 (03:18 -0000)
commit9a4b31a59d24cd5aca28d326e44bce66683c9048
tree34a7585a97c8ee8b8f2f568e09487cd16a6e207c
parentd7b88e3f8f60b30b54b5033f1391d1739175e6e3
Avoid python-2.6 deprecation warnings for md5 and sha modules by trying
to import hashlib first and then falling back to the deprecated modules
if necessary. Thanks to ColdWind for reporting.

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