From patchwork Sat May 19 02:37:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D3587: pathencode: fix importing hashlib on Python 3 From: phabricator X-Patchwork-Id: 31672 Message-Id: <578ff0189de187ed4a4953ed5201a7a8@localhost.localdomain> To: mercurial-devel@mercurial-scm.org Date: Sat, 19 May 2018 02:37:44 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHG92ac9cf78dba: pathencode: fix importing hashlib on Python 3 (authored by durin42, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3587?vs=8749&id=8758 REVISION DETAIL https://phab.mercurial-scm.org/D3587 AFFECTED FILES mercurial/cext/pathencode.c CHANGE DETAILS To: durin42, #hg-reviewers Cc: yuja, mercurial-devel diff --git a/mercurial/cext/pathencode.c b/mercurial/cext/pathencode.c --- a/mercurial/cext/pathencode.c +++ b/mercurial/cext/pathencode.c @@ -660,7 +660,7 @@ if (name == NULL) return -1; - hashlib = PyImport_Import(name); + hashlib = PyImport_ImportModule("hashlib"); Py_DECREF(name); if (hashlib == NULL) {