]> arthur.barton.de Git - bup.git/commit - lib/bup/helpers.py
Get rid of a sha-related DeprecationWarning in python 2.6.
authorAvery Pennarun <apenwarr@gmail.com>
Thu, 1 Apr 2010 18:48:10 +0000 (14:48 -0400)
committerAvery Pennarun <apenwarr@gmail.com>
Thu, 1 Apr 2010 18:48:10 +0000 (14:48 -0400)
commitc149e435812fc8bb25cedd5c692189bd26fcec98
tree78467ca2abae914889ca495b3f5294a7a1a851b6
parent2ba1c50ee661e4e76b3bca22714f860aecdfba1e
Get rid of a sha-related DeprecationWarning in python 2.6.

hashlib is only available in python 2.5 or higher, but the 'sha' module
produces a DeprecationWarning in python 2.6 or higher.  We want to support
python 2.4 and above without any stupid warnings, so let's try using
hashlib.  If it fails, switch to the old sha module.
cmd/fsck-cmd.py
cmd/midx-cmd.py
lib/bup/git.py
lib/bup/helpers.py