mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Issue #17917: Use PyModule_AddIntMacro() instead of PyModule_AddIntConstant()
when applicable.
This commit is contained in:
parent
d66b10e165
commit
74ca886788
12 changed files with 681 additions and 708 deletions
|
@ -5299,8 +5299,8 @@ PyInit__datetime(void)
|
|||
return NULL;
|
||||
|
||||
/* module initialization */
|
||||
PyModule_AddIntConstant(m, "MINYEAR", MINYEAR);
|
||||
PyModule_AddIntConstant(m, "MAXYEAR", MAXYEAR);
|
||||
PyModule_AddIntMacro(m, MINYEAR);
|
||||
PyModule_AddIntMacro(m, MAXYEAR);
|
||||
|
||||
Py_INCREF(&PyDateTime_DateType);
|
||||
PyModule_AddObject(m, "date", (PyObject *) &PyDateTime_DateType);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue