org.python.core.StderrWrapper Maven / Gradle / Ivy
Go to download
Jython is an implementation of the high-level, dynamic, object-oriented
language Python written in 100% Pure Java, and seamlessly integrated with
the Java platform. It thus allows you to run Python on any Java platform.
// Copyright (c) Corporation for National Research Initiatives
package org.python.core;
public class StderrWrapper extends StdoutWrapper {
public StderrWrapper() {
this.name = "stderr";
}
protected PyObject getObject(PySystemState ss) {
return ss.stderr;
}
protected void setObject(PySystemState ss, PyObject obj) {
ss.stderr = obj;
}
}