py3: bulk-replace 'const char*' format specifier passed to PyArg_ParseTuple*()
Perhaps we need this because 's' accepts a unicode string. https://docs.python.org/3/c-api/arg.html#strings-and-buffers Substituted using the following pattern with some manual fixes: '\b(PyArg_ParseTuple)\((\s*\w+,\s*)"([^"]+)"' '\b(PyArg_ParseTupleAndKeywords)\((\s*\w+,\s*\w+,\s*)"([^"]+)"'
Showing
- mercurial/cext/base85.c 2 additions, 2 deletionsmercurial/cext/base85.c
- mercurial/cext/bdiff.c 3 additions, 2 deletionsmercurial/cext/bdiff.c
- mercurial/cext/charencode.c 2 additions, 1 deletionmercurial/cext/charencode.c
- mercurial/cext/mpatch.c 1 addition, 1 deletionmercurial/cext/mpatch.c
- mercurial/cext/osutil.c 8 additions, 5 deletionsmercurial/cext/osutil.c
- mercurial/cext/parsers.c 8 additions, 5 deletionsmercurial/cext/parsers.c
- mercurial/cext/pathencode.c 2 additions, 1 deletionmercurial/cext/pathencode.c
- mercurial/cext/revlog.c 1 addition, 1 deletionmercurial/cext/revlog.c
Loading
Please register or sign in to comment