Skip to content

Commit

Permalink
edit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
neonene committed May 1, 2024
1 parent 163b209 commit 2637e04
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions Include/datetime.h
Expand Up @@ -198,11 +198,8 @@ _PyDateTimeAPI_not_ready(void)
{
return NULL;
}
// typedef PyDateTime_CAPI *(*datetime_api_getfunc)(void);
// static datetime_api_getfunc _PyDateTimeAPI_Get = _PyDateTimeAPI_not_ready;
static PyDateTime_CAPI *(*_PyDateTimeAPI_Get)(void) = _PyDateTimeAPI_not_ready;


static inline void
_PyDateTimeAPI_Import(void)
{
Expand Down
2 changes: 1 addition & 1 deletion Modules/_datetimemodule.c
Expand Up @@ -128,7 +128,7 @@ _PyDateTimeAPI_Import(void)
// PyInit__datetime() is not called when the module is already loaded
// with single-phase init.
set_datetime_capi_by_interp(capi);
return (void *)_PyDateTimeAPI_Get;
return _PyDateTimeAPI_Get;
}
return NULL;
}
Expand Down

0 comments on commit 2637e04

Please sign in to comment.