Skip to content

Commit 25f2348

Browse files
committed
Set statx_result's module-qualified name in spec
1 parent d530ab9 commit 25f2348

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Modules/posixmodule.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3502,7 +3502,7 @@ static PyType_Slot pystatx_result_slots[] = {
35023502
};
35033503

35043504
static PyType_Spec pystatx_result_spec = {
3505-
.name = "statx_result",
3505+
.name = "os.statx_result",
35063506
.basicsize = sizeof(Py_statx_result),
35073507
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HEAPTYPE | Py_TPFLAGS_HAVE_GC |
35083508
Py_TPFLAGS_IMMUTABLETYPE | Py_TPFLAGS_DISALLOW_INSTANTIATION,
@@ -18556,7 +18556,6 @@ posixmodule_exec(PyObject *m)
1855618556
}
1855718557
}
1855818558
else {
18559-
pystatx_result_spec.name = "os.statx_result";
1856018559
state->StatxResultType = PyType_FromModuleAndSpec(m, &pystatx_result_spec, NULL);
1856118560
if (PyModule_AddObjectRef(m, "statx_result", state->StatxResultType) < 0) {
1856218561
return -1;

0 commit comments

Comments
 (0)