diff options
Diffstat (limited to 'Objects/codeobject.c')
-rw-r--r-- | Objects/codeobject.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c index 99199cc..88e09ac 100644 --- a/Objects/codeobject.c +++ b/Objects/codeobject.c @@ -372,13 +372,6 @@ _PyCode_New(struct _PyCodeConstructor *con) } init_code(co, con); - /* Check for any inner or outer closure references */ - if (!co->co_ncellvars && !co->co_nfreevars) { - co->co_flags |= CO_NOFREE; - } else { - co->co_flags &= ~CO_NOFREE; - } - return co; } |