3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.180
3ef2ca
Fcc: outbox
3ef2ca
From: Bram Moolenaar <Bram@moolenaar.net>
3ef2ca
Mime-Version: 1.0
3ef2ca
Content-Type: text/plain; charset=UTF-8
3ef2ca
Content-Transfer-Encoding: 8bit
3ef2ca
------------
3ef2ca
3ef2ca
Patch 7.4.180 (after 7.4.174)
3ef2ca
Problem:    Older Python versions don't support %ld.
3ef2ca
Solution:   Use %d instead. (ZyX)
3ef2ca
Files:	    src/if_py_both.h
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.179/src/if_py_both.h	2014-02-12 22:08:46.055820155 +0100
3ef2ca
--- src/if_py_both.h	2014-02-15 15:56:44.133904982 +0100
3ef2ca
***************
3ef2ca
*** 2510,2517 ****
3ef2ca
  	{
3ef2ca
  	    Py_DECREF(iterator);
3ef2ca
  	    PyErr_FORMAT(PyExc_ValueError,
3ef2ca
! 		    N_("attempt to assign sequence of size greater then %ld "
3ef2ca
! 			"to extended slice"), (long)slicelen);
3ef2ca
  	    list_restore(numadded, numreplaced, slicelen, l, lis, lastaddedli);
3ef2ca
  	    PyMem_Free(lis);
3ef2ca
  	    return -1;
3ef2ca
--- 2510,2517 ----
3ef2ca
  	{
3ef2ca
  	    Py_DECREF(iterator);
3ef2ca
  	    PyErr_FORMAT(PyExc_ValueError,
3ef2ca
! 		    N_("attempt to assign sequence of size greater then %d "
3ef2ca
! 			"to extended slice"), (int) slicelen);
3ef2ca
  	    list_restore(numadded, numreplaced, slicelen, l, lis, lastaddedli);
3ef2ca
  	    PyMem_Free(lis);
3ef2ca
  	    return -1;
3ef2ca
***************
3ef2ca
*** 2523,2530 ****
3ef2ca
      if (step != 1 && i != slicelen)
3ef2ca
      {
3ef2ca
  	PyErr_FORMAT2(PyExc_ValueError,
3ef2ca
! 		N_("attempt to assign sequence of size %ld to extended slice "
3ef2ca
! 		    "of size %ld"), (long)i, (long)slicelen);
3ef2ca
  	list_restore(numadded, numreplaced, slicelen, l, lis, lastaddedli);
3ef2ca
  	PyMem_Free(lis);
3ef2ca
  	return -1;
3ef2ca
--- 2523,2530 ----
3ef2ca
      if (step != 1 && i != slicelen)
3ef2ca
      {
3ef2ca
  	PyErr_FORMAT2(PyExc_ValueError,
3ef2ca
! 		N_("attempt to assign sequence of size %d to extended slice "
3ef2ca
! 		    "of size %d"), (int) i, (int) slicelen);
3ef2ca
  	list_restore(numadded, numreplaced, slicelen, l, lis, lastaddedli);
3ef2ca
  	PyMem_Free(lis);
3ef2ca
  	return -1;
3ef2ca
*** ../vim-7.4.179/src/version.c	2014-02-12 22:08:46.059820155 +0100
3ef2ca
--- src/version.c	2014-02-15 15:58:13.877904839 +0100
3ef2ca
***************
3ef2ca
*** 740,741 ****
3ef2ca
--- 740,743 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     180,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
   LAUNCELOT leaps into SHOT with a mighty cry and runs the GUARD through and
3ef2ca
   hacks him to the floor.  Blood.  Swashbuckling music (perhaps).
3ef2ca
   LAUNCELOT races through into the castle screaming.
3ef2ca
SECOND SENTRY: Hey!
3ef2ca
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
3ef2ca
3ef2ca
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
3ef2ca
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
3ef2ca
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
3ef2ca
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///