summaryrefslogtreecommitdiff
path: root/src/if_python3.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-06-23 13:28:17 +0200
committerBram Moolenaar <Bram@vim.org>2013-06-23 13:28:17 +0200
commit0bd80ccd853ddfa4cc2385b6ceb3b2610245a9ed (patch)
treea1df58e6f24ee6e84b6fa024e8a4ea822697f995 /src/if_python3.c
parent808c2bc8bf435917b792e172a22dc5f8c0e7066a (diff)
downloadvim-git-0bd80ccd853ddfa4cc2385b6ceb3b2610245a9ed.tar.gz
updated for version 7.3.1229v7.3.1229
Problem: Python: not so easy to delete/restore translating. Solution: Make macros do translation of exception messages. (ZyX) Note: this breaks translations!
Diffstat (limited to 'src/if_python3.c')
-rw-r--r--src/if_python3.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/if_python3.c b/src/if_python3.c
index 9052e4159..7155bc1c6 100644
--- a/src/if_python3.c
+++ b/src/if_python3.c
@@ -1169,7 +1169,7 @@ BufferSubscript(PyObject *self, PyObject* idx)
}
else
{
- PyErr_SetString(PyExc_TypeError, _("index must be int or slice"));
+ PyErr_SET_STRING(PyExc_TypeError, "index must be int or slice");
return NULL;
}
}
@@ -1203,7 +1203,7 @@ BufferAsSubscript(PyObject *self, PyObject* idx, PyObject* val)
}
else
{
- PyErr_SetString(PyExc_TypeError, _("index must be int or slice"));
+ PyErr_SET_STRING(PyExc_TypeError, "index must be int or slice");
return -1;
}
}
@@ -1285,7 +1285,7 @@ RangeSubscript(PyObject *self, PyObject* idx)
}
else
{
- PyErr_SetString(PyExc_TypeError, _("index must be int or slice"));
+ PyErr_SET_STRING(PyExc_TypeError, "index must be int or slice");
return NULL;
}
}
@@ -1312,7 +1312,7 @@ RangeAsSubscript(PyObject *self, PyObject *idx, PyObject *val)
}
else
{
- PyErr_SetString(PyExc_TypeError, _("index must be int or slice"));
+ PyErr_SET_STRING(PyExc_TypeError, "index must be int or slice");
return -1;
}
}
@@ -1491,7 +1491,7 @@ ListSubscript(PyObject *self, PyObject* idx)
}
else
{
- PyErr_SetString(PyExc_TypeError, _("index must be int or slice"));
+ PyErr_SET_STRING(PyExc_TypeError, "index must be int or slice");
return NULL;
}
}
@@ -1515,7 +1515,7 @@ ListAsSubscript(PyObject *self, PyObject *idx, PyObject *obj)
}
else
{
- PyErr_SetString(PyExc_TypeError, _("index must be int or slice"));
+ PyErr_SET_STRING(PyExc_TypeError, "index must be int or slice");
return -1;
}
}