Skip to content

Commit

Permalink
make flake8 happy
Browse files Browse the repository at this point in the history
  • Loading branch information
d-maurer committed Apr 22, 2020
1 parent 97d4ed7 commit 674d582
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/RestrictedPython/transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1485,13 +1485,10 @@ def visit_NamedExpr(self, node):
# variables. While this may hide global variables, an
# (implicitly performed) name check guarantees (as usual)
# that no essential global variable is hidden.
node = self.node_contents_visit(node) # this checks ``node.target``
node = self.node_contents_visit(node) # this checks ``node.target``
target = node.target
if not isinstance(target, ast.Name):
self.error(
node,
"Assignment expressions are only allowed for simple targets")
return node



0 comments on commit 674d582

Please sign in to comment.