Handles Try node and processes body and else-clause. .. note:: pycode parser ignores objects definition in except-clause.
(self, node: ast.Try)
| 459 | pass # this assignment is not new definition! |
| 460 | |
| 461 | def visit_Try(self, node: ast.Try) -> None: |
| 462 | """Handles Try node and processes body and else-clause. |
| 463 | |
| 464 | .. note:: pycode parser ignores objects definition in except-clause. |
| 465 | """ |
| 466 | for subnode in node.body: |
| 467 | self.visit(subnode) |
| 468 | for subnode in node.orelse: |
| 469 | self.visit(subnode) |
| 470 | |
| 471 | def visit_ClassDef(self, node: ast.ClassDef) -> None: |
| 472 | """Handles ClassDef node and set context.""" |