summaryrefslogtreecommitdiff
path: root/src/if_python.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-06-23 13:46:40 +0200
committerBram Moolenaar <Bram@vim.org>2013-06-23 13:46:40 +0200
commitc476e52fcaf9e1ad779add6368e4f46b2c0d881c (patch)
treedc1d97fee9e56a07f4f1475ef938245a419c72ae /src/if_python.c
parent0bd80ccd853ddfa4cc2385b6ceb3b2610245a9ed (diff)
downloadvim-git-c476e52fcaf9e1ad779add6368e4f46b2c0d881c.tar.gz
updated for version 7.3.1230v7.3.1230
Problem: Python: Exception messages are not clear. Solution: Make exception messages more verbose. (ZyX)
Diffstat (limited to 'src/if_python.c')
-rw-r--r--src/if_python.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/if_python.c b/src/if_python.c
index ed5111991..28cd36f85 100644
--- a/src/if_python.c
+++ b/src/if_python.c
@@ -160,6 +160,7 @@ struct PyMethodDef { Py_ssize_t a; };
# define PyErr_BadArgument dll_PyErr_BadArgument
# define PyErr_NewException dll_PyErr_NewException
# define PyErr_Clear dll_PyErr_Clear
+# define PyErr_Format dll_PyErr_Format
# define PyErr_PrintEx dll_PyErr_PrintEx
# define PyErr_NoMemory dll_PyErr_NoMemory
# define PyErr_Occurred dll_PyErr_Occurred
@@ -301,6 +302,7 @@ static int(*dll_PyDict_SetItemString)(PyObject *dp, char *key, PyObject *item);
static int(*dll_PyErr_BadArgument)(void);
static PyObject *(*dll_PyErr_NewException)(char *, PyObject *, PyObject *);
static void(*dll_PyErr_Clear)(void);
+static PyObject*(*dll_PyErr_Format)(PyObject *, const char *, ...);
static void(*dll_PyErr_PrintEx)(int);
static PyObject*(*dll_PyErr_NoMemory)(void);
static PyObject*(*dll_PyErr_Occurred)(void);
@@ -473,6 +475,7 @@ static struct
{"PyErr_BadArgument", (PYTHON_PROC*)&dll_PyErr_BadArgument},
{"PyErr_NewException", (PYTHON_PROC*)&dll_PyErr_NewException},
{"PyErr_Clear", (PYTHON_PROC*)&dll_PyErr_Clear},
+ {"PyErr_Format", (PYTHON_PROC*)&dll_PyErr_Format},
{"PyErr_PrintEx", (PYTHON_PROC*)&dll_PyErr_PrintEx},
{"PyErr_NoMemory", (PYTHON_PROC*)&dll_PyErr_NoMemory},
{"PyErr_Occurred", (PYTHON_PROC*)&dll_PyErr_Occurred},