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