util: overwrite sha1 and _fastsha1
authorSimon Heimberg <simohe@besonet.ch>
Fri, 08 May 2009 09:59:15 +0200
changeset 8309 4ff63d699256
parent 8308 1268b895f69b
child 8310 8417d82d3969
util: overwrite sha1 and _fastsha1
mercurial/util.py
--- 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