Kaydet (Commit) 198457a9 authored tarafından Fred Drake's avatar Fred Drake

When iterating over the names imported in a future statement, ignore the

commas in the concrete syntax; checking those causes a segfault.

This fixes SF bug #407394.
üst 0a3939fc
......@@ -19,7 +19,7 @@ future_check_features(PyFutureFeatures *ff, node *n, char *filename)
REQ(n, import_stmt); /* must by from __future__ import ... */
for (i = 3; i < NCH(n); ++i) {
for (i = 3; i < NCH(n); i += 2) {
ch = CHILD(n, i);
if (TYPE(ch) == STAR) {
PyErr_SetString(PyExc_SyntaxError,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment