Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 814e938 commit d9cf85fCopy full SHA for d9cf85f
1 file changed
Python/compile.c
@@ -2529,6 +2529,7 @@ compiler_from_import(struct compiler *c, stmt_ty s)
2529
if (s->lineno > c->c_future->ff_lineno) {
2530
if (!strcmp(PyString_AS_STRING(s->v.ImportFrom.module),
2531
"__future__")) {
2532
+ Py_DECREF(level);
2533
Py_DECREF(names);
2534
return compiler_error(c,
2535
"from __future__ imports must occur "
0 commit comments