Skip to content

Commit

Permalink
fixup! Fix, loading pickles with compiled functions in module mode wa…
Browse files Browse the repository at this point in the history
…s not working
  • Loading branch information
kayhayen committed May 14, 2024
1 parent f75b0da commit cd14c19
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions nuitka/code_generation/templates/CodeTemplatesModules.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,9 +461,11 @@
PGO_onModuleExit("%(module_identifier)s", false);
#if defined(_NUITKA_MODULE) && %(is_top)d
PyObject *post_load = IMPORT_EMBEDDED_MODULE(tstate, %(module_name_cstr)s "-postLoad");
if (post_load == NULL) {
return NULL;
{
PyObject *post_load = IMPORT_EMBEDDED_MODULE(tstate, %(module_name_cstr)s "-postLoad");
if (post_load == NULL) {
return NULL;
}
}
#endif
Expand Down

0 comments on commit cd14c19

Please sign in to comment.