Update of /cvsroot/jython/jython/org/python/core
In directory usw-pr-cvs1:/tmp/cvs-serv5123
Modified Files:
exceptions.java
Log Message:
Replaces the jythonc generated code with hand written code.
Index: exceptions.java
===================================================================
RCS file: /cvsroot/jython/jython/org/python/core/exceptions.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** exceptions.java 2000/10/28 19:17:36 1.3
--- exceptions.java 2001/02/22 11:08:21 1.4
***************
*** 1,685 ****
package org.python.core;
! import org.python.core.*;
! public class exceptions extends java.lang.Object implements org.python.core.ClassDictInit {
! static String[] jpy$properties = new String[] {"python.modules.builtin", "exceptions:org.python.core.exceptions", "python.options.showJavaExceptions", "true", "python.packages.paths", "", "python.packages.directories", ""};
! static String[] jpy$packages = new String[] {};
!
! public static class _PyInner extends PyFunctionTable implements PyRunnable {
! private static PyObject s$0;
[...1052 lines suppressed...]
!
! private static PyObject getJavaFunc(String name) {
! return Py.newJavaFunc(exceptions.class, name);
! }
!
! private static PyObject buildClass(PyObject dict, String classname,
! String superclass, String classCodeName,
! String doc) {
! PyObject[] sclass = Py.EmptyObjects;
! if (superclass != null)
! sclass = new PyObject[] { dict.__getitem__(new PyString(superclass)) };
! PyObject cls = Py.makeClass(
! classname, sclass,
! Py.newJavaCode(exceptions.class, classCodeName),
! new PyString(doc));
! dict.__setitem__(classname, cls);
! return cls;
! }
}
+
|