Mercurial > public > mercurial-scm > hg
diff hgext/fastannotate/context.py @ 40675:9fcf8084ada8
py3: use node.hex(m.digest()) instead of m.hexdigest()
hashlib.sha1.hexdigest() returns str on Python 3.
Differential Revision: https://phab.mercurial-scm.org/D5287
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Mon, 19 Nov 2018 21:12:13 +0300 |
parents | d6a13f6db69c |
children | dd1006874a5a |
line wrap: on
line diff
--- a/hgext/fastannotate/context.py Sun Nov 18 02:40:47 2018 +0100 +++ b/hgext/fastannotate/context.py Mon Nov 19 21:12:13 2018 +0300 @@ -138,7 +138,7 @@ (k, getattr(diffopts, k)) for k in mdiff.diffopts.defaults )) - return hashlib.sha1(diffoptstr).hexdigest()[:6] + return node.hex(hashlib.sha1(diffoptstr).digest())[:6] _defaultdiffopthash = hashdiffopts(mdiff.defaultopts)