Skip to content

Commit

Permalink
Inline get_python3_raise_children()
Browse files Browse the repository at this point in the history
  • Loading branch information
lieryan committed Jun 7, 2022
1 parent 673c794 commit e4c1224
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions rope/refactor/patchedast.py
Original file line number Diff line number Diff line change
Expand Up @@ -746,15 +746,11 @@ def _Print(self, node):
self._handle(node, children)

def _Raise(self, node):
def get_python3_raise_children(node):
children = ["raise"]
if node.exc:
children.append(node.exc)
if node.cause:
children.append(node.cause)
return children

children = get_python3_raise_children(node)
children = ["raise"]
if node.exc:
children.append(node.exc)
if node.cause:
children.append(node.cause)
self._handle(node, children)

def _Return(self, node):
Expand Down

0 comments on commit e4c1224

Please sign in to comment.