mercurial/cext/parsers.c
changeset 36619 1f8c3fadbb8e
parent 35309 d13526333835
child 36620 186c6df3a373
equal deleted inserted replaced
36618:9a639a33ad1f 36619:1f8c3fadbb8e
   252 		PyErr_SetString(PyExc_ValueError,
   252 		PyErr_SetString(PyExc_ValueError,
   253 		                "too little data for parents");
   253 		                "too little data for parents");
   254 		goto quit;
   254 		goto quit;
   255 	}
   255 	}
   256 
   256 
   257 	parents = Py_BuildValue("s#s#", str, 20, str + 20, 20);
   257 	parents = Py_BuildValue(PY23("s#s#", "y#y#"), str, 20, str + 20, 20);
   258 	if (!parents)
   258 	if (!parents)
   259 		goto quit;
   259 		goto quit;
   260 
   260 
   261 	/* read filenames */
   261 	/* read filenames */
   262 	while (pos >= 40 && pos < len) {
   262 	while (pos >= 40 && pos < len) {