Skip to content

Commit e137d72

Browse files
authored
Revert "Issue #21: Avoid C++ keyword module (#22)" (#28)
This reverts commit ca6a60e.
1 parent 6d2c96e commit e137d72

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pythoncapi_compat.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -322,11 +322,11 @@ PyObject_CallOneArg(PyObject *func, PyObject *arg)
322322
// bpo-1635741 added PyModule_AddObjectRef() to Python 3.10.0a3
323323
#if PY_VERSION_HEX < 0x030A00A3
324324
PYCAPI_COMPAT_STATIC_INLINE(int)
325-
PyModule_AddObjectRef(PyObject *mod, const char *name, PyObject *value)
325+
PyModule_AddObjectRef(PyObject *module, const char *name, PyObject *value)
326326
{
327327
int res;
328328
Py_XINCREF(value);
329-
res = PyModule_AddObject(mod, name, value);
329+
res = PyModule_AddObject(module, name, value);
330330
if (res < 0) {
331331
Py_XDECREF(value);
332332
}
@@ -338,7 +338,7 @@ PyModule_AddObjectRef(PyObject *mod, const char *name, PyObject *value)
338338
// bpo-40024 added PyModule_AddType() to Python 3.9.0a5
339339
#if PY_VERSION_HEX < 0x030900A5
340340
PYCAPI_COMPAT_STATIC_INLINE(int)
341-
PyModule_AddType(PyObject *mod, PyTypeObject *type)
341+
PyModule_AddType(PyObject *module, PyTypeObject *type)
342342
{
343343
const char *name, *dot;
344344

@@ -354,7 +354,7 @@ PyModule_AddType(PyObject *mod, PyTypeObject *type)
354354
name = dot + 1;
355355
}
356356

357-
return PyModule_AddObjectRef(mod, name, _PyObject_CAST(type));
357+
return PyModule_AddObjectRef(module, name, _PyObject_CAST(type));
358358
}
359359
#endif
360360

0 commit comments

Comments
 (0)