Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix exception handling #844

Open
wants to merge 10 commits into
base: master
from

Fix style

  • Loading branch information...
vincent-prz committed Aug 27, 2018
commit 24efba2653c5d7c019171c7322ce4a1cce40e9d4
@@ -1,7 +1,6 @@
import ast
import copy
import sys
import traceback

from ..java import opcodes as JavaOpcodes
from .modules import Module
@@ -1796,7 +1795,7 @@ def visit_Yield(self, node):
'Lorg/python/Object;'
)
)

yield_point = len(self.context.yield_points) + 1

# Save the current stack and yield index
@@ -2542,8 +2541,7 @@ def _should_visit_core_exception(self, node):
return node.type is None or (
isinstance(node.type, ast.Name) and
(node.type.id in builtin_exceptions or
node.type.id in self.symbol_namespace
)
node.type.id in self.symbol_namespace)
)

@node_visitor
@@ -2596,7 +2594,6 @@ def visit_ExceptHandler(self, node):
END_IF(),
)


def _visitCoreException(self, node):
if isinstance(node.type, ast.Tuple):
exception = [
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.