diff options
author | Thomas Wouters <thomas@python.org> | 2006-05-25 11:26:25 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2006-05-25 11:26:25 (GMT) |
commit | 143bdfcee6c3b3a4b688a7c9fca28a14d775c4e2 (patch) | |
tree | d9cdea8862609b766b3d410c0ae3dc02535f2994 /Python/graminit.c | |
parent | cf8229ea3b0c0f56d261074bd9eb18b459ff8a8a (diff) | |
download | cpython-143bdfcee6c3b3a4b688a7c9fca28a14d775c4e2.zip cpython-143bdfcee6c3b3a4b688a7c9fca28a14d775c4e2.tar.gz cpython-143bdfcee6c3b3a4b688a7c9fca28a14d775c4e2.tar.bz2 |
Update graminit.c for the fix for #1488915, Multiple dots in relative import
statement raise SyntaxError, and add testcase.
Diffstat (limited to 'Python/graminit.c')
-rw-r--r-- | Python/graminit.c | 35 |
1 files changed, 15 insertions, 20 deletions
diff --git a/Python/graminit.c b/Python/graminit.c index ae367ce..8f20502 100644 --- a/Python/graminit.c +++ b/Python/graminit.c @@ -517,41 +517,36 @@ static arc arcs_26_1[2] = { {12, 3}, }; static arc arcs_26_2[3] = { - {75, 4}, + {75, 2}, {12, 3}, - {72, 5}, + {72, 4}, }; static arc arcs_26_3[1] = { - {72, 5}, + {72, 4}, }; -static arc arcs_26_4[2] = { - {75, 4}, - {12, 3}, +static arc arcs_26_4[3] = { + {28, 5}, + {13, 6}, + {76, 5}, }; -static arc arcs_26_5[3] = { - {28, 6}, - {13, 7}, - {76, 6}, +static arc arcs_26_5[1] = { + {0, 5}, }; static arc arcs_26_6[1] = { - {0, 6}, + {76, 7}, }; static arc arcs_26_7[1] = { - {76, 8}, -}; -static arc arcs_26_8[1] = { - {15, 6}, + {15, 5}, }; -static state states_26[9] = { +static state states_26[8] = { {1, arcs_26_0}, {2, arcs_26_1}, {3, arcs_26_2}, {1, arcs_26_3}, - {2, arcs_26_4}, - {3, arcs_26_5}, + {3, arcs_26_4}, + {1, arcs_26_5}, {1, arcs_26_6}, {1, arcs_26_7}, - {1, arcs_26_8}, }; static arc arcs_27_0[1] = { {19, 1}, @@ -1839,7 +1834,7 @@ static dfa dfas[84] = { "\000\000\000\000\000\000\000\000\000\005\000\000\000\000\000\000\000\000\000\000\000"}, {281, "import_name", 0, 3, states_25, "\000\000\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\000\000\000\000"}, - {282, "import_from", 0, 9, states_26, + {282, "import_from", 0, 8, states_26, "\000\000\000\000\000\000\000\000\000\004\000\000\000\000\000\000\000\000\000\000\000"}, {283, "import_as_name", 0, 4, states_27, "\000\000\010\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"}, |