2012-06-10 | Paul Boddie | raw files shortlog changelog graph | Fixed the branch nodes in try...except statements. | |
micropython/inspect.py (file) |
1.1 --- a/micropython/inspect.py Sun Jun 10 01:49:51 2012 +0200 1.2 +++ b/micropython/inspect.py Sun Jun 10 18:33:50 2012 +0200 1.3 @@ -1220,8 +1220,10 @@ 1.4 1.5 self.new_branchpoint() 1.6 1.7 + # NOTE: Attempt to recover abandoned branches from the body. 1.8 + 1.9 for name, var, n in node.handlers: 1.10 - self.new_branch(node) 1.11 + self.new_branch(n) 1.12 1.13 # Establish the local for the handler. 1.14