diff options
Diffstat (limited to 'gdb/python/py-membuf.c')
-rw-r--r-- | gdb/python/py-membuf.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/python/py-membuf.c b/gdb/python/py-membuf.c index af48d01..25ebc99 100644 --- a/gdb/python/py-membuf.c +++ b/gdb/python/py-membuf.c @@ -102,11 +102,7 @@ static int CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION gdbpy_initialize_membuf (void) { membuf_object_type.tp_new = PyType_GenericNew; - if (PyType_Ready (&membuf_object_type) < 0) - return -1; - - return gdb_pymodule_addobject (gdb_module, "Membuf", - (PyObject *) &membuf_object_type); + return gdbpy_type_ready (&membuf_object_type); } GDBPY_INITIALIZE_FILE (gdbpy_initialize_membuf); |