mercurial/cext/mpatch.c
changeset 36620 186c6df3a373
parent 36361 a2d11d23bb25
child 39991 77492c10a35b
--- a/mercurial/cext/mpatch.c	Sat Mar 03 06:08:22 2018 -0500
+++ b/mercurial/cext/mpatch.c	Sat Mar 03 06:18:47 2018 -0500
@@ -134,7 +134,7 @@
 	Py_ssize_t patchlen;
 	char *bin;
 
-	if (!PyArg_ParseTuple(args, "ls#", &orig, &bin, &patchlen))
+	if (!PyArg_ParseTuple(args, PY23("ls#", "ly#"), &orig, &bin, &patchlen))
 		return NULL;
 
 	while (pos >= 0 && pos < patchlen) {