diff options
| author | Brett Cannon <bcannon@gmail.com> | 2005-03-05 06:47:57 +0000 |
|---|---|---|
| committer | Brett Cannon <bcannon@gmail.com> | 2005-03-05 06:47:57 +0000 |
| commit | 8516da4845ceff3b1e388acee8967e58fff9e06a (patch) | |
| tree | 6e6e42bc56a89da9f1fbb54c838a9674db5f468f /Python/graminit.c | |
| parent | 69a73c413116bd75334a8bc7e65f6b681a51dd2e (diff) | |
| download | cpython-8516da4845ceff3b1e388acee8967e58fff9e06a.tar.gz | |
Allow classes to be defined with empty parentheses. This means that
``class C(): pass`` is no longer a syntax error.
Diffstat (limited to 'Python/graminit.c')
| -rw-r--r-- | Python/graminit.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Python/graminit.c b/Python/graminit.c index c4fe66148b..464f0aeddd 100644 --- a/Python/graminit.c +++ b/Python/graminit.c @@ -1426,26 +1426,27 @@ static arc arcs_67_2[2] = { {13, 3}, {21, 4}, }; -static arc arcs_67_3[1] = { +static arc arcs_67_3[2] = { {9, 5}, + {15, 6}, }; static arc arcs_67_4[1] = { - {22, 6}, + {22, 7}, }; static arc arcs_67_5[1] = { - {15, 7}, + {15, 6}, }; static arc arcs_67_6[1] = { - {0, 6}, + {21, 4}, }; static arc arcs_67_7[1] = { - {21, 4}, + {0, 7}, }; static state states_67[8] = { {1, arcs_67_0}, {1, arcs_67_1}, {2, arcs_67_2}, - {1, arcs_67_3}, + {2, arcs_67_3}, {1, arcs_67_4}, {1, arcs_67_5}, {1, arcs_67_6}, |
