mercurial/util.py
changeset 8309 4ff63d699256
parent 8302 d2ad8c066676
child 8312 b87a50b7125c
--- 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