mercurial/cext/pathencode.c
changeset 38087 92ac9cf78dba
parent 36649 186c6df3a373
child 38088 4fccc73ce2f6
--- a/mercurial/cext/pathencode.c	Fri May 18 20:11:24 2018 -0400
+++ b/mercurial/cext/pathencode.c	Fri May 18 20:42:04 2018 -0400
@@ -660,7 +660,7 @@
 		if (name == NULL)
 			return -1;
 
-		hashlib = PyImport_Import(name);
+		hashlib = PyImport_ImportModule("hashlib");
 		Py_DECREF(name);
 
 		if (hashlib == NULL) {