Author: Philip Jenvey <[email protected]>
Branch: remove-intlong-smm
Changeset: r67074:9a188688a67a
Date: 2013-09-23 14:36 -0700
http://bitbucket.org/pypy/pypy/changeset/9a188688a67a/
Log: fix translation
diff --git a/pypy/objspace/std/intobject.py b/pypy/objspace/std/intobject.py
--- a/pypy/objspace/std/intobject.py
+++ b/pypy/objspace/std/intobject.py
@@ -204,7 +204,7 @@
y = space.int_w(w_exponent)
try:
return space.wrap(_pow_impl(space, x, y, z))
- except NotImplementedError:
+ except ValueError:
return self._delegate2longpow(space, w_exponent, w_modulus)
def _delegate2longpow(self, space, w_exponent, w_modulus):
@@ -414,7 +414,7 @@
"specified")
raise operationerrfmt(space.w_TypeError, msg)
## bounce it, since it always returns float
- raise NotImplementedError
+ raise ValueError
temp = iv
ix = 1
try:
@@ -432,7 +432,7 @@
if iz:
ix = ix % iz
except OverflowError:
- raise NotImplementedError
+ raise ValueError
return ix
# ____________________________________________________________
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit