summaryrefslogtreecommitdiffstats
path: root/Objects/classobject.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-05-03 16:04:13 (GMT)
committerFred Drake <fdrake@acm.org>2001-05-03 16:04:13 (GMT)
commit4dcb85b81756fb4b93c296831646c0d015ad38aa (patch)
tree6a113893a6e7cd83bacc253bb1293f3b045f613f /Objects/classobject.c
parentefdae3939adcb76858c58ccb92503dd404a90703 (diff)
downloadcpython-4dcb85b81756fb4b93c296831646c0d015ad38aa.zip
cpython-4dcb85b81756fb4b93c296831646c0d015ad38aa.tar.gz
cpython-4dcb85b81756fb4b93c296831646c0d015ad38aa.tar.bz2
Since Py_TPFLAGS_HAVE_WEAKREFS is set in Py_TPFLAGS_DEFAULT, it does not
need to be specified in the type structures independently. The flag exists only for binary compatibility. This is a "source cleanliness" issue and introduces no behavioral changes.
Diffstat (limited to 'Objects/classobject.c')
-rw-r--r--Objects/classobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/classobject.c b/Objects/classobject.c
index 9f4d155..2babbfb 100644
--- a/Objects/classobject.c
+++ b/Objects/classobject.c
@@ -2103,7 +2103,7 @@ PyTypeObject PyMethod_Type = {
(getattrofunc)instancemethod_getattro, /* tp_getattro */
(setattrofunc)instancemethod_setattro, /* tp_setattro */
0, /* tp_as_buffer */
- Py_TPFLAGS_DEFAULT | Py_TPFLAGS_GC | Py_TPFLAGS_HAVE_WEAKREFS,
+ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_GC, /* tp_flags */
0, /* tp_doc */
(traverseproc)instancemethod_traverse, /* tp_traverse */
0, /* tp_clear */