|
Karsten Hopp |
f99183 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
f99183 |
Subject: Patch 7.3.144
|
|
Karsten Hopp |
f99183 |
Fcc: outbox
|
|
Karsten Hopp |
f99183 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
f99183 |
Mime-Version: 1.0
|
|
Karsten Hopp |
f99183 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
f99183 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
f99183 |
------------
|
|
Karsten Hopp |
f99183 |
|
|
Karsten Hopp |
f99183 |
Patch 7.3.144
|
|
Karsten Hopp |
f99183 |
Problem: Crash with ":python help(dir)". (Kearn Holliday)
|
|
Karsten Hopp |
f99183 |
Solution: Fix the way the type is set on objects. (Tobias Columbus)
|
|
Karsten Hopp |
f99183 |
Files: src/if_python.c
|
|
Karsten Hopp |
f99183 |
|
|
Karsten Hopp |
f99183 |
|
|
Karsten Hopp |
f99183 |
*** ../vim-7.3.143/src/if_python.c 2010-11-16 19:25:56.000000000 +0100
|
|
Karsten Hopp |
f99183 |
--- src/if_python.c 2011-03-26 13:54:22.000000000 +0100
|
|
Karsten Hopp |
f99183 |
***************
|
|
Karsten Hopp |
f99183 |
*** 780,786 ****
|
|
Karsten Hopp |
f99183 |
PythonIO_Init(void)
|
|
Karsten Hopp |
f99183 |
{
|
|
Karsten Hopp |
f99183 |
/* Fixups... */
|
|
Karsten Hopp |
f99183 |
! OutputType.ob_type = &PyType_Type;
|
|
Karsten Hopp |
f99183 |
|
|
Karsten Hopp |
f99183 |
return PythonIO_Init_io();
|
|
Karsten Hopp |
f99183 |
}
|
|
Karsten Hopp |
f99183 |
--- 780,786 ----
|
|
Karsten Hopp |
f99183 |
PythonIO_Init(void)
|
|
Karsten Hopp |
f99183 |
{
|
|
Karsten Hopp |
f99183 |
/* Fixups... */
|
|
Karsten Hopp |
f99183 |
! PyType_Ready(&OutputType);
|
|
Karsten Hopp |
f99183 |
|
|
Karsten Hopp |
f99183 |
return PythonIO_Init_io();
|
|
Karsten Hopp |
f99183 |
}
|
|
Karsten Hopp |
f99183 |
***************
|
|
Karsten Hopp |
f99183 |
*** 1402,1413 ****
|
|
Karsten Hopp |
f99183 |
static char *(argv[2]) = {"/must>not&exist/foo", NULL};
|
|
Karsten Hopp |
f99183 |
|
|
Karsten Hopp |
f99183 |
/* Fixups... */
|
|
Karsten Hopp |
f99183 |
! BufferType.ob_type = &PyType_Type;
|
|
Karsten Hopp |
f99183 |
! RangeType.ob_type = &PyType_Type;
|
|
Karsten Hopp |
f99183 |
! WindowType.ob_type = &PyType_Type;
|
|
Karsten Hopp |
f99183 |
! BufListType.ob_type = &PyType_Type;
|
|
Karsten Hopp |
f99183 |
! WinListType.ob_type = &PyType_Type;
|
|
Karsten Hopp |
f99183 |
! CurrentType.ob_type = &PyType_Type;
|
|
Karsten Hopp |
f99183 |
|
|
Karsten Hopp |
f99183 |
/* Set sys.argv[] to avoid a crash in warn(). */
|
|
Karsten Hopp |
f99183 |
PySys_SetArgv(1, argv);
|
|
Karsten Hopp |
f99183 |
--- 1402,1413 ----
|
|
Karsten Hopp |
f99183 |
static char *(argv[2]) = {"/must>not&exist/foo", NULL};
|
|
Karsten Hopp |
f99183 |
|
|
Karsten Hopp |
f99183 |
/* Fixups... */
|
|
Karsten Hopp |
f99183 |
! PyType_Ready(&BufferType);
|
|
Karsten Hopp |
f99183 |
! PyType_Ready(&RangeType);
|
|
Karsten Hopp |
f99183 |
! PyType_Ready(&WindowType);
|
|
Karsten Hopp |
f99183 |
! PyType_Ready(&BufListType);
|
|
Karsten Hopp |
f99183 |
! PyType_Ready(&WinListType);
|
|
Karsten Hopp |
f99183 |
! PyType_Ready(&CurrentType);
|
|
Karsten Hopp |
f99183 |
|
|
Karsten Hopp |
f99183 |
/* Set sys.argv[] to avoid a crash in warn(). */
|
|
Karsten Hopp |
f99183 |
PySys_SetArgv(1, argv);
|
|
Karsten Hopp |
f99183 |
*** ../vim-7.3.143/src/version.c 2011-03-22 18:10:34.000000000 +0100
|
|
Karsten Hopp |
f99183 |
--- src/version.c 2011-03-26 13:56:15.000000000 +0100
|
|
Karsten Hopp |
f99183 |
***************
|
|
Karsten Hopp |
f99183 |
*** 716,717 ****
|
|
Karsten Hopp |
f99183 |
--- 716,719 ----
|
|
Karsten Hopp |
f99183 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
f99183 |
+ /**/
|
|
Karsten Hopp |
f99183 |
+ 144,
|
|
Karsten Hopp |
f99183 |
/**/
|
|
Karsten Hopp |
f99183 |
|
|
Karsten Hopp |
f99183 |
--
|
|
Karsten Hopp |
f99183 |
The chat program is in public domain. This is not the GNU public license.
|
|
Karsten Hopp |
f99183 |
If it breaks then you get to keep both pieces.
|
|
Karsten Hopp |
f99183 |
-- Copyright notice for the chat program
|
|
Karsten Hopp |
f99183 |
|
|
Karsten Hopp |
f99183 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
f99183 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
f99183 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
f99183 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|