summaryrefslogtreecommitdiffstats
path: root/Lib/compiler/transformer.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/compiler/transformer.py')
-rw-r--r--Lib/compiler/transformer.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/compiler/transformer.py b/Lib/compiler/transformer.py
index 229657b..53a0fda 100644
--- a/Lib/compiler/transformer.py
+++ b/Lib/compiler/transformer.py
@@ -198,7 +198,7 @@ class Transformer:
i += 2
return item
-
+
def decorator(self, nodelist):
# '@' dotted_name [ '(' [arglist] ')' ]
assert len(nodelist) in (2, 4, 5)
@@ -212,9 +212,9 @@ class Transformer:
expr = self.com_call_function(funcname, nodelist[3])
else:
expr = funcname
-
+
return expr
-
+
def decorators(self, nodelist):
# decorators: decorator ([NEWLINE] decorator)* NEWLINE
listlen = len(nodelist)
@@ -228,7 +228,7 @@ class Transformer:
if i < listlen and nodelist[i][0] == token.NEWLINE:
i += 1
return Decorators(items)
-
+
def funcdef(self, nodelist):
# -6 -5 -4 -3 -2 -1
# funcdef: [decorators] 'def' NAME parameters ':' suite
@@ -240,7 +240,7 @@ class Transformer:
else:
assert len(nodelist) == 5
decorators = None
-
+
lineno = nodelist[-4][2]
name = nodelist[-4][1]
args = nodelist[-3][2]