[PATCH 4 of 5] cleanup: replace uses of util.(md5|sha1|sha256|sha512) with hashlib.\1

Yuya Nishihara yuya at tcha.org
Fri Jun 10 10:16:22 EDT 2016


On Fri, 10 Jun 2016 00:41:17 -0400, Augie Fackler wrote:
> # HG changeset patch
> # User Augie Fackler <raf at durin42.com>
> # Date 1465531953 14400
> #      Fri Jun 10 00:12:33 2016 -0400
> # Node ID c53644cf3126d5fe51a32b464ecf77c3ea2ca549
> # Parent  08f06fc43974db42a5b5ba45744c584a2832ff3a
> cleanup: replace uses of util.(md5|sha1|sha256|sha512) with hashlib.\1

The series looks good to me. Pushed to the committed repo, thanks.

I've removed unused imports to silence pyflakes.

   $ hg locate 'set:**.py or grep("^#!.*python")' 2>/dev/null \
   > | xargs pyflakes 2>/dev/null | "$TESTDIR/filterpyflakes.py"
+  mercurial/keepalive.py:628: '.util' imported but unused
+  mercurial/repoview.py:17: '.util' imported but unused
   tests/filterpyflakes.py:61: undefined name 'undefinedname'


More information about the Mercurial-devel mailing list