[pypy-svn] r24007 - pypy/dist/pypy/translator/c

mwh at codespeak.net mwh at codespeak.net
Mon Mar 6 11:21:59 CET 2006


Author: mwh
Date: Mon Mar  6 11:21:57 2006
New Revision: 24007

Modified:
   pypy/dist/pypy/translator/c/funcgen.py
Log:
improve an exception message very slightly


Modified: pypy/dist/pypy/translator/c/funcgen.py
==============================================================================
--- pypy/dist/pypy/translator/c/funcgen.py	(original)
+++ pypy/dist/pypy/translator/c/funcgen.py	Mon Mar  6 11:21:57 2006
@@ -425,7 +425,8 @@
         try:
             cleanup = op.cleanup
         except AttributeError:
-            raise AttributeError("(in)direct_call %r without explicit .cleanup" % op)
+            raise AttributeError("%r without explicit .cleanup"
+                                 %  (op,))
         if cleanup is not None:
             # insert the 'finally' operations before the exception check
             cleanup_finally, cleanup_except = op.cleanup



More information about the Pypy-commit mailing list