Skip to content

Commit 62bd653

Browse files
committed
Remove broken assertion.
1 parent 193c49a commit 62bd653

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Objects/codeobject.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1979,7 +1979,9 @@ _PyCode_CheckNoExternalState(PyCodeObject *co, _PyCode_var_counts_t *counts,
19791979
const char **p_errmsg)
19801980
{
19811981
const char *errmsg = NULL;
1982-
assert(counts->locals.hidden.total == 0);
1982+
// Why is it an assumption that there can't be any hidden
1983+
// locals?
1984+
//assert(counts->locals.hidden.total == 0);
19831985
if (counts->numfree > 0) { // It's a closure.
19841986
errmsg = "closures not supported";
19851987
}

0 commit comments

Comments
 (0)