# HG changeset patch # User Gregory Szorc # Date 1475956735 -7200 # Node ID 301ef65e8ebb4c5f8f6ec3dc0cd3660e75f44663 # Parent 3bf4b762537eee7fc3a4bc69fd8658533b16fa9e osutil: convert PyString* to PyBytes* Continuing the conversion from PyString* to PyBytes*. diff -r 3bf4b762537e -r 301ef65e8ebb mercurial/osutil.c --- a/mercurial/osutil.c Sat Oct 08 21:57:55 2016 +0200 +++ b/mercurial/osutil.c Sat Oct 08 21:58:55 2016 +0200 @@ -624,7 +624,7 @@ pypath = PySequence_GetItem(names, i); if (!pypath) goto bail; - path = PyString_AsString(pypath); + path = PyBytes_AsString(pypath); if (path == NULL) { Py_DECREF(pypath); PyErr_SetString(PyExc_TypeError, "not a string");