compile doesn't accept code objects
This commit is contained in:
parent
b67596d815
commit
f76f0eea5c
|
@ -657,7 +657,7 @@ builtin_compile(PyObject *self, PyObject *args, PyObject *kwds)
|
||||||
goto finally;
|
goto finally;
|
||||||
}
|
}
|
||||||
|
|
||||||
str = source_as_string(cmd, "compile", "string, bytes, AST or code", &cf);
|
str = source_as_string(cmd, "compile", "string, bytes or AST", &cf);
|
||||||
if (str == NULL)
|
if (str == NULL)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue