D3587: pathencode: fix importing hashlib on Python 3
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Fri May 18 22:37:44 EDT 2018
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
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) {
To: durin42, #hg-reviewers
Cc: yuja, mercurial-devel
More information about the Mercurial-devel
mailing list