-
Committer:
Vincent Ladeuil
-
Date:
2007-10-24 13:56:34 UTC
-
mto:
(3928.1.1 bzr.integration)
-
mto:
This revision was merged to the branch mainline in
revision
3929.
-
Revision ID:
v.ladeuil+lp@free.fr-20071024135634-d8os3by1g6f45q12
Fix python2.6 deprecation warnings (still 4 failures 5 errors in test suite).
* bzrlib/osutils.py:
Wrap md5 and sha imports to be compatible with python 2.4, 2.5,
2.6.
Replace all sha.new() calls by sha() calls they are reputedly
faster (not profiled).
* bzrlib/weave.py:
Update sha import, fix use.
* bzrlib/transport/http/_urllib2_wrappers.py:
Update sha and md5 imports, fix uses.
* bzrlib/tests/test_testament.py:
Update sha import.
* bzrlib/tests/test_knit.py:
Update sha import, fix uses.
* bzrlib/tests/test_hashcache.py:
Update sha import, fix use.
* bzrlib/tests/repository_implementations/test_check_reconcile.py:
Update sha import, fix use.
* bzrlib/tests/HTTPTestUtil.py:
Update md5 import, fix uses. Delete useless sha import.
* bzrlib/testament.py:
Update sha import.
* bzrlib/hashcache.py:
Update sha import.
* bzrlib/revisionspec.py:
(RevisionSpec.__new__): Remove useless parameters since python2.6
is stricter.