Mercurial > hg-stable
changeset 30098:301ef65e8ebb
osutil: convert PyString* to PyBytes*
Continuing the conversion from PyString* to PyBytes*.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 08 Oct 2016 21:58:55 +0200 |
parents | 3bf4b762537e |
children | e60de7fcad29 |
files | mercurial/osutil.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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");