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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user