mirror of
https://github.com/python/cpython
synced 2026-09-28 05:13:17 +03:00
bpo-39573: Clean up modules and headers to use Py_IS_TYPE() function (GH-18521)
This commit is contained in:
parent
a7847590f0
commit
1b55b65638
33 changed files with 56 additions and 56 deletions
|
|
@ -44,7 +44,7 @@ static PyTypeObject Dbmtype;
|
|||
|
||||
#include "clinic/_gdbmmodule.c.h"
|
||||
|
||||
#define is_dbmobject(v) (Py_TYPE(v) == &Dbmtype)
|
||||
#define is_dbmobject(v) Py_IS_TYPE(v, &Dbmtype)
|
||||
#define check_dbmobject_open(v) if ((v)->di_dbm == NULL) \
|
||||
{ PyErr_SetString(DbmError, "GDBM object has already been closed"); \
|
||||
return NULL; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue