diff options
Diffstat (limited to 'Objects/codeobject.c')
-rw-r--r-- | Objects/codeobject.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c index f947595..5a87e6c 100644 --- a/Objects/codeobject.c +++ b/Objects/codeobject.c @@ -1931,14 +1931,20 @@ _PyStaticCode_Dealloc(PyCodeObject *co) } } -void +int _PyStaticCode_InternStrings(PyCodeObject *co) { int res = intern_strings(co->co_names); - assert(res == 0); + if (res < 0) { + return -1; + } res = intern_string_constants(co->co_consts, NULL); - assert(res == 0); + if (res < 0) { + return -1; + } res = intern_strings(co->co_localsplusnames); - assert(res == 0); - (void)res; + if (res < 0) { + return -1; + } + return 0; } |