Skip to content
This repository was archived by the owner on Jan 1, 2021. It is now read-only.
Merged
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
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
PyExecJS
========
PyExecJS (EOL)
==============
[![Build Status](https://travis-ci.org/doloopwhile/PyExecJS.svg?branch=travis-ci)](https://travis-ci.org/doloopwhile/PyExecJS)

# End of life

This library is no longer maintananced. Bugs are not be fixed (even if they are trivial or essential).

We suggest to use other library or to make a fork.

---

Run JavaScript code from Python.

PyExecJS is a porting of ExecJS from Ruby.
Expand Down
14 changes: 12 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
PyExecJS
========
PyExecJS (EOL)
==============

End of life
===========

This library is no longer maintananced. Bugs are not be fixed (even if
they are trivial or essential).

We suggest to use other library or to make a fork.

--------------

Run JavaScript code from Python.

Expand Down
3 changes: 1 addition & 2 deletions execjs/_pyv8runtime.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import json
import contextlib

import execjs._exceptions as exceptions
from execjs._abstract_runtime import AbstractRuntime
Expand Down Expand Up @@ -48,7 +47,7 @@ def _exec_(self, source):
source = str(source)

# backward compatibility
with contextlib.nested(PyV8.JSContext(), PyV8.JSEngine()) as (ctxt, engine):
with PyV8.JSContext() as ctxt, PyV8.JSEngine() as engine:
js_errors = (PyV8.JSError, IndexError, ReferenceError, SyntaxError, TypeError)
try:
script = engine.compile(source)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import sys
import io

version = '1.5.0'
version = '1.5.1'
author = "Omoto Kenji"
license = "MIT License"
author_email = 'doloopwhile@gmail.com'
Expand Down