diff options
author | Thomas Heller <theller@ctypes.org> | 2007-11-27 12:22:11 (GMT) |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2007-11-27 12:22:11 (GMT) |
commit | 8fc2a34014fe21a9a3a530f5932e95662a0d6f5e (patch) | |
tree | fa4287f80ac6ac31bf2e2eb704f0d6965b5e1cfa /Modules | |
parent | 41f039292f5746a43563563490848a41b027dca7 (diff) | |
download | cpython-8fc2a34014fe21a9a3a530f5932e95662a0d6f5e.zip cpython-8fc2a34014fe21a9a3a530f5932e95662a0d6f5e.tar.gz cpython-8fc2a34014fe21a9a3a530f5932e95662a0d6f5e.tar.bz2 |
Remove unused global variable, and remove unneeded COMError.__str__
implementation in C.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_ctypes/_ctypes.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c index 3b2c72a..d564fb9 100644 --- a/Modules/_ctypes/_ctypes.c +++ b/Modules/_ctypes/_ctypes.c @@ -4752,18 +4752,6 @@ static char *module_docs = static char comerror_doc[] = "Raised when a COM method call failed."; static PyObject * -comerror_str(PyObject *ignored, PyObject *self) -{ - PyObject *args = PyObject_GetAttrString(self, "args"); - PyObject *result; - if (args == NULL) - return NULL; - result = PyObject_Str(args); - Py_DECREF(args); - return result; -} - -static PyObject * comerror_init(PyObject *self, PyObject *args) { PyObject *hresult, *text, *details; @@ -4795,13 +4783,10 @@ comerror_init(PyObject *self, PyObject *args) } static PyMethodDef comerror_methods[] = { - { "__str__", comerror_str, METH_O }, { "__init__", comerror_init, METH_VARARGS }, { NULL, NULL }, }; -PyObject *COMError; - static int create_comerror(void) { |