diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-04-04 00:22:29 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-04-04 00:22:29 +0200 |
commit | aed295b97e649ef7db4300cc400bc2bd9b1a03b0 (patch) | |
tree | 5d29728797f2c34e4946ce4a2604be2fb8202f4e /source4/libcli/util | |
parent | 8afd52a6418125100a5e8a6a4312c0460e57ac88 (diff) | |
download | samba-aed295b97e649ef7db4300cc400bc2bd9b1a03b0.tar.gz samba-aed295b97e649ef7db4300cc400bc2bd9b1a03b0.tar.bz2 samba-aed295b97e649ef7db4300cc400bc2bd9b1a03b0.zip |
s4-python: Remove convenience macro PyErr_SetStringError.
This macro assumed that all errors were runtime errors.
Diffstat (limited to 'source4/libcli/util')
-rw-r--r-- | source4/libcli/util/pyerrors.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/source4/libcli/util/pyerrors.h b/source4/libcli/util/pyerrors.h index 3fd2a7c9fa..4c526c6ed2 100644 --- a/source4/libcli/util/pyerrors.h +++ b/source4/libcli/util/pyerrors.h @@ -26,9 +26,6 @@ #define PyErr_FromString(str) Py_BuildValue("(s)", discard_const_p(char, str)) -#define PyErr_SetStringError(str) \ - PyErr_SetObject(PyExc_RuntimeError, PyErr_FromString(str)) - #define PyErr_SetWERROR(err) \ PyErr_SetObject(PyExc_RuntimeError, PyErr_FromWERROR(err)) |