Update of /cvsroot/jython/jython/org/python/core
In directory usw-pr-cvs1:/tmp/cvs-serv21434
Modified Files:
PySystemState.java
Log Message:
Fix a problem in applets. That environment can't handle initialized
varible that well.
Index: PySystemState.java
===================================================================
RCS file: /cvsroot/jython/jython/org/python/core/PySystemState.java,v
retrieving revision 2.53
retrieving revision 2.54
diff -C2 -r2.53 -r2.54
*** PySystemState.java 2001/03/14 14:31:27 2.53
--- PySystemState.java 2001/03/22 20:01:25 2.54
***************
*** 138,141 ****
--- 138,146 ----
return exc.traceback;
}
+ if (name == "warnoptions") {
+ if (warnoptions == null)
+ warnoptions = new PyList();
+ return warnoptions;
+ }
PyObject ret = super.__findattr__(name);
***************
*** 379,386 ****
Py.Newline = new PyString("\n");
Py.Space = new PyString(" ");
-
__builtin__class = PyJavaClass.lookup(__builtin__.class);
-
- warnoptions = new PyList();
// Setup standard wrappers for stdout and stderr...
--- 384,388 ----
|