# HG changeset patch # User Augie Fackler # Date 1526690551 14400 # Node ID 4fccc73ce2f62fc65985f2da95846749c89db183 # Parent 92ac9cf78dba7765b39e32e1380bfa5e51a44ff5 pathencode: hashlib.sha1() takes bytes not str on Python 3 Differential Revision: https://phab.mercurial-scm.org/D3588 diff -r 92ac9cf78dba -r 4fccc73ce2f6 mercurial/cext/pathencode.c --- a/mercurial/cext/pathencode.c Fri May 18 20:42:04 2018 -0400 +++ b/mercurial/cext/pathencode.c Fri May 18 20:42:31 2018 -0400 @@ -678,7 +678,7 @@ } } - shaobj = PyObject_CallFunction(shafunc, "s#", str, len); + shaobj = PyObject_CallFunction(shafunc, PY23("s#", "y#"), str, len); if (shaobj == NULL) return -1;