Skip to content

Commit b7d7a1b

Browse files
committed
Rename this language from Python to Jython
This makes it more clear how it works, and paves the way for another Python-based language soon to come.
1 parent f739b4a commit b7d7a1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/scijava/plugins/scripting/jython/JythonScriptLanguage.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
* @author Mark Hiner
5353
* @see ScriptEngine
5454
*/
55-
@Plugin(type = ScriptLanguage.class, name = "Python")
55+
@Plugin(type = ScriptLanguage.class, name = "Jython")
5656
public class JythonScriptLanguage extends AdaptedScriptLanguage {
5757

5858
@Parameter
@@ -78,7 +78,7 @@ public Object decode(final Object object) {
7878
return ((PyString) object).getString();
7979
}
8080
if (object instanceof PyObject) {
81-
// Unwrap Python objects when they wrap Java ones.
81+
// Unwrap Jython objects when they wrap Java ones.
8282
final PyObject pyObj = (PyObject) object;
8383
final Class<?> javaType = pyObj.getType().getProxyType();
8484
if (javaType != null) return pyObj.__tojava__(javaType);

0 commit comments

Comments
 (0)