Update of /cvsroot/jython/jython/org/python/core
In directory usw-pr-cvs1:/tmp/cvs-serv32647
Modified Files:
PyMethod.java
Log Message:
__call__(): Make exception text match CPython.
Index: PyMethod.java
===================================================================
RCS file: /cvsroot/jython/jython/org/python/core/PyMethod.java,v
retrieving revision 2.7
retrieving revision 2.8
diff -C2 -r2.7 -r2.8
*** PyMethod.java 2000/10/10 20:01:42 2.7
--- PyMethod.java 2001/01/21 16:18:56 2.8
***************
*** 102,106 ****
if (badcall) {
throw Py.TypeError(
! "unbound method must be called with class instance 1st argument");
}
else
--- 102,106 ----
if (badcall) {
throw Py.TypeError(
! "unbound method " + __name__ + "() must be called with instance as first argument");
}
else
|