1
0
forked from aniani/vim

updated for version 7.3.953

Problem:    Python: string exceptions are deprecated.
Solution:   Make vim.error an Exception subclass. (ZyX)
This commit is contained in:
Bram Moolenaar
2013-05-15 16:04:40 +02:00
parent e761459eb6
commit d5f729cada
3 changed files with 7 additions and 2 deletions

View File

@@ -1606,8 +1606,8 @@ Py3Init_vim(void)
return NULL;
VimError = PyErr_NewException("vim.error", NULL, NULL);
Py_INCREF(VimError);
Py_INCREF(VimError);
PyModule_AddObject(mod, "error", VimError);
Py_INCREF((PyObject *)(void *)&TheBufferMap);
PyModule_AddObject(mod, "buffers", (PyObject *)(void *)&TheBufferMap);