Mercurial > hg
diff mercurial/wireprotov2server.py @ 44060:a61287a95dc3
core: migrate uses of hashlib.sha1 to hashutil.sha1
Differential Revision: https://phab.mercurial-scm.org/D7849
author | Augie Fackler <augie@google.com> |
---|---|
date | Mon, 13 Jan 2020 17:15:14 -0500 |
parents | 8ff1ecfadcd1 |
children | 89a2afe31e82 |
line wrap: on
line diff
--- a/mercurial/wireprotov2server.py Mon Jan 13 17:14:19 2020 -0500 +++ b/mercurial/wireprotov2server.py Mon Jan 13 17:15:14 2020 -0500 @@ -8,7 +8,6 @@ import collections import contextlib -import hashlib from .i18n import _ from .node import ( @@ -31,6 +30,7 @@ from .interfaces import util as interfaceutil from .utils import ( cborutil, + hashutil, stringutil, ) @@ -858,7 +858,7 @@ cacher.adjustcachekeystate(state) - hasher = hashlib.sha1() + hasher = hashutil.sha1() for chunk in cborutil.streamencode(state): hasher.update(chunk)