mercurial/cext/base85.c
changeset 36620 186c6df3a373
parent 36226 e1138fc2c4e2
child 39420 91477b123700
--- a/mercurial/cext/base85.c	Sat Mar 03 06:08:22 2018 -0500
+++ b/mercurial/cext/base85.c	Sat Mar 03 06:18:47 2018 -0500
@@ -37,7 +37,7 @@
 	unsigned int acc, val, ch;
 	int pad = 0;
 
-	if (!PyArg_ParseTuple(args, "s#|i", &text, &len, &pad))
+	if (!PyArg_ParseTuple(args, PY23("s#|i", "y#|i"), &text, &len, &pad))
 		return NULL;
 
 	if (pad)
@@ -84,7 +84,7 @@
 	int c;
 	unsigned int acc;
 
-	if (!PyArg_ParseTuple(args, "s#", &text, &len))
+	if (!PyArg_ParseTuple(args, PY23("s#", "y#"), &text, &len))
 		return NULL;
 
 	olen = len / 5 * 4;