summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorFacundo Batista <facundobatista@gmail.com>2008-02-25 18:06:00 (GMT)
committerFacundo Batista <facundobatista@gmail.com>2008-02-25 18:06:00 (GMT)
commit4219da4bd0bd46733e6c07ea33c57d45e11641cf (patch)
treec134c4de7dc6a217c0cb719e555386894fd41e8a /Tools
parenta3c8c10201fb38fb078a4ad2758d945d44c07a5f (diff)
downloadcpython-4219da4bd0bd46733e6c07ea33c57d45e11641cf.zip
cpython-4219da4bd0bd46733e6c07ea33c57d45e11641cf.tar.gz
cpython-4219da4bd0bd46733e6c07ea33c57d45e11641cf.tar.bz2
Issue 2117. Update compiler module to handle class decorators.
Thanks Thomas Herve
Diffstat (limited to 'Tools')
-rw-r--r--Tools/compiler/ast.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/compiler/ast.txt b/Tools/compiler/ast.txt
index 7968a52..2dfb372 100644
--- a/Tools/compiler/ast.txt
+++ b/Tools/compiler/ast.txt
@@ -14,7 +14,7 @@ Stmt: nodes!
Decorators: nodes!
Function: decorators&, name*, argnames*, defaults!, flags*, doc*, code
Lambda: argnames*, defaults!, flags*, code
-Class: name*, bases!, doc*, code
+Class: name*, bases!, doc*, code, decorators& = None
Pass:
Break:
Continue:
@@ -97,7 +97,7 @@ init(Lambda):
self.kwargs = 1
init(GenExpr):
- self.argnames = ['[outmost-iterable]']
+ self.argnames = ['.0']
self.varargs = self.kwargs = None
init(GenExprFor):