Submitter | phabricator |
---|---|
Date | May 19, 2018, 2:37 a.m. |
Message ID | <d24cc8806d572f1b26cb8f94118b3434@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/31676/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/mercurial/cext/pathencode.c b/mercurial/cext/pathencode.c --- a/mercurial/cext/pathencode.c +++ b/mercurial/cext/pathencode.c @@ -664,16 +664,17 @@ Py_DECREF(name); if (hashlib == NULL) { - PyErr_SetString(PyExc_ImportError, "hashlib"); + PyErr_SetString(PyExc_ImportError, + "pathencode failed to find hashlib"); return -1; } shafunc = PyObject_GetAttrString(hashlib, "sha1"); Py_DECREF(hashlib); if (shafunc == NULL) { PyErr_SetString(PyExc_AttributeError, "module 'hashlib' has no " - "attribute 'sha1'"); + "attribute 'sha1' in pathencode"); return -1; } }