Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion js2py/constructors/jsarraybuffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from ..base import *
try:
import numpy
except:
except ImportError:
pass


Expand Down
2 changes: 1 addition & 1 deletion js2py/constructors/jsfloat32array.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from ..base import *
try:
import numpy
except:
except ImportError:
pass


Expand Down
2 changes: 1 addition & 1 deletion js2py/constructors/jsint8array.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from ..base import *
try:
import numpy
except:
except ImportError:
pass


Expand Down
2 changes: 1 addition & 1 deletion js2py/constructors/jsuint8array.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from ..base import *
try:
import numpy
except:
except ImportError:
pass


Expand Down
2 changes: 1 addition & 1 deletion js2py/translators/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def translate_js_with_compilation_plan(js, HEADER=DEFAULT_HEADER):
cp_hash = hashlib.md5(compilation_plan.encode('utf-8')).digest()
try:
python_code = cache[cp_hash]['proto_python_code']
except:
except KeyError:
parser = pyjsparser.PyJsParser()
parsed = parser.parse(compilation_plan) # js to esprima syntax tree
# Another way of doing that would be with my auto esprima translation but its much slower and causes import problems:
Expand Down