File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ extern PyStatus _Py_HashRandomization_Init(const PyConfig *);
41
41
42
42
extern PyStatus _PyGC_Init (PyInterpreterState * interp );
43
43
extern PyStatus _PyAtExit_Init (PyInterpreterState * interp );
44
- extern PyStatus _PyDateTime_Init (PyInterpreterState * interp );
44
+ extern PyStatus _PyDateTime_InitTypes (PyInterpreterState * interp );
45
45
46
46
/* Various internal finalizers */
47
47
Original file line number Diff line number Diff line change @@ -7331,7 +7331,7 @@ clear_state(datetime_state *st)
7331
7331
7332
7332
7333
7333
PyStatus
7334
- _PyDateTime_Init (PyInterpreterState * interp )
7334
+ _PyDateTime_InitTypes (PyInterpreterState * interp )
7335
7335
{
7336
7336
// `&...` is not a constant expression according to a strict reading
7337
7337
// of C standards. Fill tp_base at run-time rather than statically.
Original file line number Diff line number Diff line change @@ -760,6 +760,11 @@ pycore_init_types(PyInterpreterState *interp)
760
760
return status ;
761
761
}
762
762
763
+ status = _PyDateTime_InitTypes (interp );
764
+ if (_PyStatus_EXCEPTION (status )) {
765
+ return status ;
766
+ }
767
+
763
768
return _PyStatus_OK ();
764
769
}
765
770
@@ -915,11 +920,6 @@ pycore_interp_init(PyThreadState *tstate)
915
920
goto done ;
916
921
}
917
922
918
- status = _PyDateTime_Init (tstate -> interp );
919
- if (_PyStatus_EXCEPTION (status )) {
920
- goto done ;
921
- }
922
-
923
923
const PyConfig * config = _PyInterpreterState_GetConfig (interp );
924
924
925
925
status = _PyImport_InitCore (tstate , sysmod , config -> _install_importlib );
You can’t perform that action at this time.
0 commit comments