0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

updated for version 7.4.180

Problem:    Older Python versions don't support %ld.
Solution:   Use %d instead. (ZyX)
This commit is contained in:
Bram Moolenaar
2014-02-15 15:59:03 +01:00
parent 0e4eebd425
commit 403b3cf0a1
2 changed files with 6 additions and 4 deletions

View File

@@ -2510,8 +2510,8 @@ ListAssSlice(ListObject *self, Py_ssize_t first,
{
Py_DECREF(iterator);
PyErr_FORMAT(PyExc_ValueError,
N_("attempt to assign sequence of size greater then %ld "
"to extended slice"), (long)slicelen);
N_("attempt to assign sequence of size greater then %d "
"to extended slice"), (int) slicelen);
list_restore(numadded, numreplaced, slicelen, l, lis, lastaddedli);
PyMem_Free(lis);
return -1;
@@ -2523,8 +2523,8 @@ ListAssSlice(ListObject *self, Py_ssize_t first,
if (step != 1 && i != slicelen)
{
PyErr_FORMAT2(PyExc_ValueError,
N_("attempt to assign sequence of size %ld to extended slice "
"of size %ld"), (long)i, (long)slicelen);
N_("attempt to assign sequence of size %d to extended slice "
"of size %d"), (int) i, (int) slicelen);
list_restore(numadded, numreplaced, slicelen, l, lis, lastaddedli);
PyMem_Free(lis);
return -1;

View File

@@ -738,6 +738,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
180,
/**/
179,
/**/