[pypy-svn] r13413 - pypy/dist/pypy/rpython

arigo at codespeak.net arigo at codespeak.net
Tue Jun 14 22:57:25 CEST 2005


Author: arigo
Date: Tue Jun 14 22:57:25 2005
New Revision: 13413

Modified:
   pypy/dist/pypy/rpython/rint.py
Log:
Oups again: the op_appendices mapping goes in the other direction.


Modified: pypy/dist/pypy/rpython/rint.py
==============================================================================
--- pypy/dist/pypy/rpython/rint.py	(original)
+++ pypy/dist/pypy/rpython/rint.py	Tue Jun 14 22:57:25 2005
@@ -160,11 +160,7 @@
     func1 = func
     for implicit_exc in implicit_excs:
         if hop.has_implicit_exception(implicit_exc):
-            for appendix, klass in op_appendices.items():
-                if klass is implicit_exc:
-                    break
-            else:
-                raise ValueError("can't find implicit exc %r" % (implicit_exc,))
+            appendix = op_appendices[implicit_exc]
             func += '_' + appendix
     if hop.s_result.unsigned:
         if func1.endswith('_ovf'):



More information about the Pypy-commit mailing list