| CODENOTIFIER | HelpYou are not signed inSign in |
Project: Jython
Revision: 5211
Author: pjenvey
Date: 19 Aug 2008 19:34:29
Changes:small cleanup
Files:| ... | ...@@ -281,7 +281,7 @@ | |
| 281 | 281 | * |
| 282 | 282 | * @param arg0 the first argument to the function. |
| 283 | 283 | * @param arg1 the second argument to the function. |
| 284 | n **/ | |
| 284 | **/ | |
| 285 | 285 | public PyObject __call__(PyObject arg0, PyObject arg1) { |
| 286 | 286 | return __call__(new PyObject[] { arg0, arg1 }, Py.NoKeywords); |
| 287 | 287 | } |
| ... | ...@@ -166,23 +166,20 @@ | |
| 166 | 166 | } |
| 167 | 167 | } |
| 168 | 168 | |
| 169 | @Override | |
| 169 | 170 | public String toString() { |
| 170 | return __repr__().toString(); | |
| 171 | } | |
| 172 | ||
| 173 | public PyString __repr__() { | |
| 174 | return BaseException___repr__(); | |
| 171 | return BaseException_toString(); | |
| 175 | 172 | } |
| 176 | 173 | |
| 177 | @ExposedMethod | |
| 178 | final PyString BaseException___repr__() { | |
| 174 | @ExposedMethod(names = ("__repr__")) | |
| 175 | final String BaseException_toString() { | |
| 179 | 176 | PyObject reprSuffix = args.__repr__(); |
| 180 | 177 | String name = getType().fastGetName(); |
| 181 | 178 | int lastDot = name.lastIndexOf('.'); |
| 182 | 179 | if (lastDot != -1) { |
| 183 | 180 | name = name.substring(lastDot + 1); |
| 184 | 181 | } |
| 185 | return Py.newString(name + reprSuffix.toString()); | |
| 182 | return name + reprSuffix.toString(); | |
| 186 | 183 | } |
| 187 | 184 | |
| 188 | 185 | @ExposedSet(name = "args") |
| ... | ...@@ -1410,7 +1410,7 @@ | |
| 1410 | 1410 | |
| 1411 | 1411 | @Override |
| 1412 | 1412 | public String toString() { |
| 1413 | return "<built-in function min>"; | |
| 1413 | return "<built-in function max>"; | |
| 1414 | 1414 | } |
| 1415 | 1415 | |
| 1416 | 1416 | private static PyObject max(PyObject o, PyObject key) { |