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

updated for version 7.3.144

Problem:    Crash with ":python help(dir)". (Kearn Holliday)
Solution:   Fix the way the type is set on objects. (Tobias Columbus)
This commit is contained in:
Bram Moolenaar
2011-03-26 13:56:48 +01:00
parent b3c5284c5b
commit 21377c8d5f
2 changed files with 9 additions and 7 deletions

View File

@@ -780,7 +780,7 @@ OutputSetattr(PyObject *self, char *name, PyObject *val)
PythonIO_Init(void) PythonIO_Init(void)
{ {
/* Fixups... */ /* Fixups... */
OutputType.ob_type = &PyType_Type; PyType_Ready(&OutputType);
return PythonIO_Init_io(); return PythonIO_Init_io();
} }
@@ -1402,12 +1402,12 @@ PythonMod_Init(void)
static char *(argv[2]) = {"/must>not&exist/foo", NULL}; static char *(argv[2]) = {"/must>not&exist/foo", NULL};
/* Fixups... */ /* Fixups... */
BufferType.ob_type = &PyType_Type; PyType_Ready(&BufferType);
RangeType.ob_type = &PyType_Type; PyType_Ready(&RangeType);
WindowType.ob_type = &PyType_Type; PyType_Ready(&WindowType);
BufListType.ob_type = &PyType_Type; PyType_Ready(&BufListType);
WinListType.ob_type = &PyType_Type; PyType_Ready(&WinListType);
CurrentType.ob_type = &PyType_Type; PyType_Ready(&CurrentType);
/* Set sys.argv[] to avoid a crash in warn(). */ /* Set sys.argv[] to avoid a crash in warn(). */
PySys_SetArgv(1, argv); PySys_SetArgv(1, argv);

View File

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