mercurial/cext/manifest.c
changeset 36619 1f8c3fadbb8e
parent 35810 113a30b87716
child 38301 d9e87566f879
--- a/mercurial/cext/manifest.c	Sat Mar 03 05:58:41 2018 -0500
+++ b/mercurial/cext/manifest.c	Sat Mar 03 06:08:22 2018 -0500
@@ -718,7 +718,8 @@
 	Py_INCREF(self->pydata);
 	for (i = 0; i < self->numlines; i++) {
 		PyObject *arglist = NULL, *result = NULL;
-		arglist = Py_BuildValue("(s)", self->lines[i].start);
+		arglist = Py_BuildValue(PY23("(s)", "(y)"),
+					self->lines[i].start);
 		if (!arglist) {
 			return NULL;
 		}