compat: mercurial dropped alias for hashlib.sha1
authortimeless@gmail.com
Fri, 08 Jul 2016 16:09:55 +0000
changeset 1968 08cbfeb15a1a
parent 1967 c5d4e856ad0e
child 1969 a604423c1500
compat: mercurial dropped alias for hashlib.sha1
hgext3rd/topic/topicmap.py
--- a/hgext3rd/topic/topicmap.py	Wed May 11 16:22:52 2016 +0200
+++ b/hgext3rd/topic/topicmap.py	Fri Jul 08 16:09:55 2016 +0000
@@ -1,4 +1,5 @@
 import contextlib
+import hashlib
 
 from mercurial.node import hex, bin, nullid
 from mercurial import (
@@ -34,7 +35,7 @@
     key = nullid
     revs = sorted(revs)
     if revs:
-        s = util.sha1()
+        s = hashlib.sha1()
         for rev in revs:
             s.update('%s;' % rev)
         key = s.digest()