Mercurial > hg
changeset 8309:4ff63d699256
util: overwrite sha1 and _fastsha1
author | Simon Heimberg <simohe@besonet.ch> |
---|---|
date | Fri, 08 May 2009 09:59:15 +0200 |
parents | 1268b895f69b |
children | 8417d82d3969 |
files | mercurial/util.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/util.py Thu May 07 21:35:12 2009 -0400 +++ b/mercurial/util.py Fri May 08 09:59:15 2009 +0200 @@ -31,8 +31,8 @@ from hashlib import sha1 as _sha1 except ImportError: from sha import sha as _sha1 - global _fastsha1 - _fastsha1 = _sha1 + global _fastsha1, sha1 + _fastsha1 = sha1 = _sha1 return _sha1(s) import subprocess