Rev 2931: Breaking python2.4 support is *not* an option :) in http://code.launchpad.net/%7Ev-ladeuil/bzr/bzr.python26
Vincent Ladeuil
v.ladeuil+lp at free.fr
Wed Oct 24 15:21:34 BST 2007
At http://code.launchpad.net/%7Ev-ladeuil/bzr/bzr.python26
------------------------------------------------------------
revno: 2931
revision-id:v.ladeuil+lp at free.fr-20071024142115-83gi49ooll2nqyxx
parent: v.ladeuil+lp at free.fr-20071024135634-d8os3by1g6f45q12
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: bzr.python26
timestamp: Wed 2007-10-24 16:21:15 +0200
message:
Breaking python2.4 support is *not* an option :)
* bzrlib/osutils.py:
<cough> new() calls are the only working way for python 2.4.
modified:
bzrlib/osutils.py osutils.py-20050309040759-eeaff12fbf77ac86
-------------- next part --------------
=== modified file 'bzrlib/osutils.py'
--- a/bzrlib/osutils.py 2007-10-24 13:56:34 +0000
+++ b/bzrlib/osutils.py 2007-10-24 14:21:15 +0000
@@ -54,8 +54,10 @@
# sha is deprecated in python2.6 but haslib is available as of 2.5
if sys.version_info < (2, 5):
- import md5
- import sha
+ import md5 as _md5
+ md5 = _md5.new
+ import sha as _sha
+ sha = _sha.new
else:
from hashlib import (
md5,
More information about the bazaar-commits
mailing list