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

wants to merge 10 commits into
base: master

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 import opcodes as JavaOpcodes
from .modules import Module
@@ -1796,7 +1795,7 @@ def visit_Yield(self, node):

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
( in builtin_exceptions or in self.symbol_namespace
) in self.symbol_namespace)

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

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.