Skip to content

Commit a26fbf9

Browse files
committed
revert silly change due to ASTTransformer bug
1 parent 1d3073e commit a26fbf9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

unpythonic/syntax/scopeanalyzer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ def transform(self, tree):
109109
self.generic_withstate(tree, args=(args + moreargs))
110110
elif type(tree) in (FunctionDef, AsyncFunctionDef):
111111
# Decorator list is processed in the surrounding scope
112-
new_decorator_list = self.visit(tree.decorator_list)
113-
tree.decorator_list = new_decorator_list if new_decorator_list is not None else []
112+
tree.decorator_list = self.visit(tree.decorator_list)
114113

115114
moreargs, newnonlocals = get_lexical_variables(tree, collect_locals=False)
116115

0 commit comments

Comments
 (0)