mercurial/cext/manifest.c
changeset 36619 1f8c3fadbb8e
parent 35810 113a30b87716
child 38301 d9e87566f879
equal deleted inserted replaced
36618:9a639a33ad1f 36619:1f8c3fadbb8e
   716 	copy->numlines = 0;
   716 	copy->numlines = 0;
   717 	copy->pydata = self->pydata;
   717 	copy->pydata = self->pydata;
   718 	Py_INCREF(self->pydata);
   718 	Py_INCREF(self->pydata);
   719 	for (i = 0; i < self->numlines; i++) {
   719 	for (i = 0; i < self->numlines; i++) {
   720 		PyObject *arglist = NULL, *result = NULL;
   720 		PyObject *arglist = NULL, *result = NULL;
   721 		arglist = Py_BuildValue("(s)", self->lines[i].start);
   721 		arglist = Py_BuildValue(PY23("(s)", "(y)"),
       
   722 					self->lines[i].start);
   722 		if (!arglist) {
   723 		if (!arglist) {
   723 			return NULL;
   724 			return NULL;
   724 		}
   725 		}
   725 		result = PyObject_CallObject(matchfn, arglist);
   726 		result = PyObject_CallObject(matchfn, arglist);
   726 		Py_DECREF(arglist);
   727 		Py_DECREF(arglist);