--- a/mercurial/cext/bdiff.c Sat Mar 03 06:08:22 2018 -0500
+++ b/mercurial/cext/bdiff.c Sat Mar 03 06:18:47 2018 -0500
@@ -70,7 +70,8 @@
l.next = NULL;
- if (!PyArg_ParseTuple(args, "s#s#:bdiff", &sa, &la, &sb, &lb))
+ if (!PyArg_ParseTuple(args, PY23("s#s#:bdiff", "y#y#:bdiff"), &sa, &la,
+ &sb, &lb))
return NULL;
if (la > UINT_MAX || lb > UINT_MAX) {
@@ -196,7 +197,7 @@
Py_ssize_t nelts = 0, size, i, start = 0;
PyObject *result = NULL;
- if (!PyArg_ParseTuple(args, "s#", &text, &size)) {
+ if (!PyArg_ParseTuple(args, PY23("s#", "y#"), &text, &size)) {
goto abort;
}
if (!size) {