Update of /cvsroot/jython/jython/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv23319
Modified Files:
make_binops.py
Log Message:
Consistent formatting. Removed traling spaces and tabs.
Index: make_binops.py
===================================================================
RCS file: /cvsroot/jython/jython/Misc/make_binops.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** make_binops.py 2001/01/31 13:16:37 1.3
--- make_binops.py 2001/02/04 14:51:47 1.4
***************
*** 11,24 ****
* @param other the object to perform this binary operation with
* (the right-hand operand).
! * @return the result of the %(name)s, or null if this operation
* is not defined
**/
public PyObject __%(name)s__(PyObject other) { %(function)s }
!
/**
* Equivalent to the standard Python __r%(name)s__ method
* @param other the object to perform this binary operation with
* (the left-hand operand).
! * @return the result of the %(name)s, or null if this operation
* is not defined.
**/
--- 11,24 ----
* @param other the object to perform this binary operation with
* (the right-hand operand).
! * @return the result of the %(name)s, or null if this operation
* is not defined
**/
public PyObject __%(name)s__(PyObject other) { %(function)s }
!
/**
* Equivalent to the standard Python __r%(name)s__ method
* @param other the object to perform this binary operation with
* (the left-hand operand).
! * @return the result of the %(name)s, or null if this operation
* is not defined.
**/
***************
*** 29,33 ****
* @param other the object to perform this binary operation with
* (the right-hand operand).
! * @return the result of the %(name)s, or null if this operation
* is not defined
**/
--- 29,33 ----
* @param other the object to perform this binary operation with
* (the right-hand operand).
! * @return the result of the %(name)s, or null if this operation
* is not defined
**/
***************
*** 38,42 ****
* @param other the object to perform this binary operation with.
* @return the result of the %(name)s.
! * @exception PyTypeError if this operation can't be performed
* with these operands.
**/
--- 38,42 ----
* @param other the object to perform this binary operation with.
* @return the result of the %(name)s.
! * @exception PyTypeError if this operation can't be performed
* with these operands.
**/
***************
*** 86,94 ****
public %(ret)s __%(name)s__() {
PyObject ret = invoke("__%(name)s__");
! if (ret instanceof %(ret)s)
return (%(ret)s)ret;
throw Py.TypeError("__%(name)s__() should return a %(retname)s");
}
!
"""
template2 = comment + """\
--- 86,94 ----
public %(ret)s __%(name)s__() {
PyObject ret = invoke("__%(name)s__");
! if (ret instanceof %(ret)s)
return (%(ret)s)ret;
throw Py.TypeError("__%(name)s__() should return a %(retname)s");
}
!
"""
template2 = comment + """\
***************
*** 96,100 ****
return invoke("__%(name)s__");
}
!
"""
--- 96,100 ----
return invoke("__%(name)s__");
}
!
"""
***************
*** 129,133 ****
}
}
!
"""
--- 129,133 ----
}
}
!
"""
***************
*** 140,144 ****
return super.__%(name)s__(o);
}
!
"""
--- 140,144 ----
return super.__%(name)s__(o);
}
!
"""
|