summaryrefslogtreecommitdiffstats
path: root/Modules/_stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_stat.c')
-rw-r--r--Modules/_stat.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/Modules/_stat.c b/Modules/_stat.c
index 546e6a5..6e0d690 100644
--- a/Modules/_stat.c
+++ b/Modules/_stat.c
@@ -592,17 +592,17 @@ stat_exec(PyObject *module)
ADD_INT_MACRO(module, FILE_ATTRIBUTE_TEMPORARY);
ADD_INT_MACRO(module, FILE_ATTRIBUTE_VIRTUAL);
- if (PyModule_AddObject(module, "IO_REPARSE_TAG_SYMLINK",
- PyLong_FromUnsignedLong(IO_REPARSE_TAG_SYMLINK)) < 0) {
- return -1;
+ if (_PyModule_Add(module, "IO_REPARSE_TAG_SYMLINK",
+ PyLong_FromUnsignedLong(IO_REPARSE_TAG_SYMLINK)) < 0) {
+ return -1;
}
- if (PyModule_AddObject(module, "IO_REPARSE_TAG_MOUNT_POINT",
- PyLong_FromUnsignedLong(IO_REPARSE_TAG_MOUNT_POINT)) < 0) {
- return -1;
+ if (_PyModule_Add(module, "IO_REPARSE_TAG_MOUNT_POINT",
+ PyLong_FromUnsignedLong(IO_REPARSE_TAG_MOUNT_POINT)) < 0) {
+ return -1;
}
- if (PyModule_AddObject(module, "IO_REPARSE_TAG_APPEXECLINK",
- PyLong_FromUnsignedLong(IO_REPARSE_TAG_APPEXECLINK)) < 0) {
- return -1;
+ if (_PyModule_Add(module, "IO_REPARSE_TAG_APPEXECLINK",
+ PyLong_FromUnsignedLong(IO_REPARSE_TAG_APPEXECLINK)) < 0) {
+ return -1;
}
#endif