summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2007-11-27 13:09:25 (GMT)
committerChristian Heimes <christian@cheimes.de>2007-11-27 13:09:25 (GMT)
commit8b2b8dbefa7d10620d59fd9785e2db23292c7124 (patch)
treeba90ebc91cd8b2fa0f70b6b7704c648f78cbe287 /Modules
parent578d7ab1e964e1e9f783560bf191c4d145305b62 (diff)
downloadcpython-8b2b8dbefa7d10620d59fd9785e2db23292c7124.zip
cpython-8b2b8dbefa7d10620d59fd9785e2db23292c7124.tar.gz
cpython-8b2b8dbefa7d10620d59fd9785e2db23292c7124.tar.bz2
Merged revisions 59187-59192 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r59190 | thomas.heller | 2007-11-27 13:22:11 +0100 (Tue, 27 Nov 2007) | 3 lines Remove unused global variable, and remove unneeded COMError.__str__ implementation in C. ........
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ctypes/_ctypes.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c
index cf0cb9a..85687c4 100644
--- a/Modules/_ctypes/_ctypes.c
+++ b/Modules/_ctypes/_ctypes.c
@@ -4560,18 +4560,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;
@@ -4603,13 +4591,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)
{