[Jython-checkins] jython: Fix ZeroDivisionError message to match CPython.
frank.wierzbicki
jython-checkins at python.org
Thu May 3 21:03:58 CEST 2012
http://hg.python.org/jython/rev/55792e2c6019
changeset: 6641:55792e2c6019
user: Frank Wierzbicki <fwierzbicki at gmail.com>
date: Thu May 03 11:01:58 2012 -0700
summary:
Fix ZeroDivisionError message to match CPython.
files:
src/org/python/core/PyInteger.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/org/python/core/PyInteger.java b/src/org/python/core/PyInteger.java
--- a/src/org/python/core/PyInteger.java
+++ b/src/org/python/core/PyInteger.java
@@ -583,7 +583,7 @@
if (value != 0) {
return left.__float__().__pow__(right, modulo);
} else {
- throw Py.ZeroDivisionError("cannot raise 0 to a negative power");
+ throw Py.ZeroDivisionError("0.0 cannot be raised to a negative power");
}
}
--
Repository URL: http://hg.python.org/jython
More information about the Jython-checkins
mailing list