diff mercurial/util.py @ 8309:4ff63d699256

util: overwrite sha1 and _fastsha1
author Simon Heimberg <simohe@besonet.ch>
date Fri, 08 May 2009 09:59:15 +0200
parents d2ad8c066676
children b87a50b7125c
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