Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8b2b8db

Browse files
committed
Merged revisions 59187-59192 via svnmerge from
svn+ssh://[email protected]/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. ........
1 parent 578d7ab commit 8b2b8db

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

Modules/_ctypes/_ctypes.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4559,18 +4559,6 @@ static char *module_docs =
45594559

45604560
static char comerror_doc[] = "Raised when a COM method call failed.";
45614561

4562-
static PyObject *
4563-
comerror_str(PyObject *ignored, PyObject *self)
4564-
{
4565-
PyObject *args = PyObject_GetAttrString(self, "args");
4566-
PyObject *result;
4567-
if (args == NULL)
4568-
return NULL;
4569-
result = PyObject_Str(args);
4570-
Py_DECREF(args);
4571-
return result;
4572-
}
4573-
45744562
static PyObject *
45754563
comerror_init(PyObject *self, PyObject *args)
45764564
{
@@ -4603,13 +4591,10 @@ comerror_init(PyObject *self, PyObject *args)
46034591
}
46044592

46054593
static PyMethodDef comerror_methods[] = {
4606-
{ "__str__", comerror_str, METH_O },
46074594
{ "__init__", comerror_init, METH_VARARGS },
46084595
{ NULL, NULL },
46094596
};
46104597

4611-
PyObject *COMError;
4612-
46134598
static int
46144599
create_comerror(void)
46154600
{

0 commit comments

Comments
 (0)