Mercurial > public > mercurial-scm > hg-stable
diff mercurial/revlog.py @ 6470:ac0bcd951c2c
python 2.6 compatibility: compatibility wrappers for hash functions
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Fri, 04 Apr 2008 22:36:40 +0200 |
parents | 3a775af0bc9f |
children | 602f7c1ab954 |
line wrap: on
line diff
--- a/mercurial/revlog.py Fri Apr 04 22:41:17 2008 +0200 +++ b/mercurial/revlog.py Fri Apr 04 22:36:40 2008 +0200 @@ -13,13 +13,13 @@ from node import bin, hex, nullid, nullrev, short from i18n import _ import changegroup, errno, ancestor, mdiff -import sha, struct, util, zlib +import struct, util, zlib _pack = struct.pack _unpack = struct.unpack _compress = zlib.compress _decompress = zlib.decompress -_sha = sha.new +_sha = util.sha1 # revlog flags REVLOGV0 = 0