Commit fb66d944 authored by Thomas Heller's avatar Thomas Heller

Remove unused global variable, and remove unneeded COMError.__str__

implementation in C.
parent c45dc28c
...@@ -4751,18 +4751,6 @@ static char *module_docs = ...@@ -4751,18 +4751,6 @@ static char *module_docs =
static char comerror_doc[] = "Raised when a COM method call failed."; 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 * static PyObject *
comerror_init(PyObject *self, PyObject *args) comerror_init(PyObject *self, PyObject *args)
{ {
...@@ -4795,13 +4783,10 @@ comerror_init(PyObject *self, PyObject *args) ...@@ -4795,13 +4783,10 @@ comerror_init(PyObject *self, PyObject *args)
} }
static PyMethodDef comerror_methods[] = { static PyMethodDef comerror_methods[] = {
{ "__str__", comerror_str, METH_O },
{ "__init__", comerror_init, METH_VARARGS }, { "__init__", comerror_init, METH_VARARGS },
{ NULL, NULL }, { NULL, NULL },
}; };
PyObject *COMError;
static int static int
create_comerror(void) create_comerror(void)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment