mercurial/cext/charencode.c
changeset 36620 186c6df3a373
parent 36225 6c87d4113a90
child 41336 763b45bc4483
--- a/mercurial/cext/charencode.c	Sat Mar 03 06:08:22 2018 -0500
+++ b/mercurial/cext/charencode.c	Sat Mar 03 06:18:47 2018 -0500
@@ -132,7 +132,8 @@
 {
 	const char *buf;
 	Py_ssize_t i, len;
-	if (!PyArg_ParseTuple(args, "s#:isasciistr", &buf, &len))
+	if (!PyArg_ParseTuple(args, PY23("s#:isasciistr", "y#:isasciistr"),
+	                      &buf, &len))
 		return NULL;
 	i = 0;
 	/* char array in PyStringObject should be at least 4-byte aligned */