Skip to content

Commit e4302d0

Browse files
authored
Remove redundant test method
1 parent de41cb5 commit e4302d0

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

Modules/socketmodule.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6976,18 +6976,6 @@ Set the default timeout in seconds (float) for new socket objects.\n\
69766976
A value of None indicates that new socket objects have no timeout.\n\
69776977
When the socket module is first imported, the default is None.");
69786978

6979-
static PyObject *
6980-
socket_getattr(PyObject *self, PyObject *name)
6981-
{
6982-
const char *attrname = PyUnicode_AsUTF8(name);
6983-
if (strcmp(attrname, "asd") == 0) {
6984-
return PyLong_FromLong(42);
6985-
}
6986-
6987-
PyErr_Format(PyExc_AttributeError, "Module has no attribute '%s'", attrname);
6988-
return NULL;
6989-
}
6990-
69916979
#if defined(HAVE_IF_NAMEINDEX) || defined(MS_WINDOWS)
69926980
/* Python API for getting interface indices and names */
69936981

0 commit comments

Comments
 (0)