Mercurial > vim
changeset 4421:ef6b11bb183d v7.3.959
updated for version 7.3.959
Problem: Missing error number.
Solution: Assign an error number.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 15 May 2013 19:44:39 +0200 |
parents | bdbdab08cc4d |
children | ed236f59b41d |
files | src/if_python3.c src/version.c |
diffstat | 2 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/if_python3.c +++ b/src/if_python3.c @@ -1007,7 +1007,8 @@ ex_py3file(exarg_T *eap) DoPy3Command(eap, buffer, NULL); } -void ex_py3do(exarg_T *eap) + void +ex_py3do(exarg_T *eap) { linenr_T i; const char *code_hdr = "def " DOPY_FUNC "(line, linenr):\n "; @@ -1068,8 +1069,7 @@ void ex_py3do(exarg_T *eap) { if (!PyUnicode_Check(pyret)) { - /* TODO: a proper error number */ - EMSG(_("E000: return value must be an instance of str")); + EMSG(_("E863: return value must be an instance of str")); Py_XDECREF(pyret); status = 1; goto out;