blob: 8e3ad0daa4dc088526e59f18ecaa84acd14d40ed [file] [log] [blame]
diff --git a/python/google/protobuf/pyext/message.cc b/python/google/protobuf/pyext/message.cc
index 44df9fbc..be207267 100644
--- a/python/google/protobuf/pyext/message.cc
+++ b/python/google/protobuf/pyext/message.cc
@@ -399,12 +399,6 @@ static PyObject* GetExtensionsByNumber(CMessageClass *self, void *closure) {
return result.release();
}
-static PyGetSetDef Getters[] = {
- {"_extensions_by_name", (getter)GetExtensionsByName, NULL},
- {"_extensions_by_number", (getter)GetExtensionsByNumber, NULL},
- {NULL}
-};
-
// Compute some class attributes on the fly:
// - All the _FIELD_NUMBER attributes, for all fields and nested extensions.
// Returns a new reference, or NULL with an exception set.
@@ -479,7 +473,7 @@ static PyTypeObject _CMessageClass_Type = {
0, // tp_iternext
0, // tp_methods
0, // tp_members
- message_meta::Getters, // tp_getset
+ 0, // tp_getset
0, // tp_base
0, // tp_dict
0, // tp_descr_get