[Jython-checkins] jython: Isolate each JSR ScriptEngine with separate PySystemState. Fixes #2154
jim.baker
jython-checkins at python.org
Thu Jan 7 00:59:41 EST 2016
https://hg.python.org/jython/rev/0d15d1513251
changeset: 7857:0d15d1513251
user: Jim Baker <jim.baker at rackspace.com>
date: Wed Jan 06 22:59:17 2016 -0700
summary:
Isolate each JSR ScriptEngine with separate PySystemState. Fixes #2154
files:
src/org/python/util/PythonInterpreter.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/org/python/util/PythonInterpreter.java b/src/org/python/util/PythonInterpreter.java
--- a/src/org/python/util/PythonInterpreter.java
+++ b/src/org/python/util/PythonInterpreter.java
@@ -78,7 +78,7 @@
* @param dict a Python mapping object (e.g., a dictionary) for use as the default namespace
*/
public static PythonInterpreter threadLocalStateInterpreter(PyObject dict) {
- return new PythonInterpreter(dict, null, true);
+ return new PythonInterpreter(dict, new PySystemState(), true);
}
/**
--
Repository URL: https://hg.python.org/jython
More information about the Jython-checkins
mailing list