mercurial/osutil.c
changeset 30098 301ef65e8ebb
parent 28593 e60c492a0d9b
child 30110 79f438f5dd02
equal deleted inserted replaced
30097:3bf4b762537e 30098:301ef65e8ebb
   622 			goto bail;
   622 			goto bail;
   623 
   623 
   624 		pypath = PySequence_GetItem(names, i);
   624 		pypath = PySequence_GetItem(names, i);
   625 		if (!pypath)
   625 		if (!pypath)
   626 			goto bail;
   626 			goto bail;
   627 		path = PyString_AsString(pypath);
   627 		path = PyBytes_AsString(pypath);
   628 		if (path == NULL) {
   628 		if (path == NULL) {
   629 			Py_DECREF(pypath);
   629 			Py_DECREF(pypath);
   630 			PyErr_SetString(PyExc_TypeError, "not a string");
   630 			PyErr_SetString(PyExc_TypeError, "not a string");
   631 			goto bail;
   631 			goto bail;
   632 		}
   632 		}