[pypy-svn] r9766 - pypy/dist/pypy/interpreter

pedronis at codespeak.net pedronis at codespeak.net
Mon Mar 14 17:12:11 CET 2005


Author: pedronis
Date: Mon Mar 14 17:12:11 2005
New Revision: 9766

Modified:
   pypy/dist/pypy/interpreter/nestedscope.py
Log:
wrap the string for OperationError



Modified: pypy/dist/pypy/interpreter/nestedscope.py
==============================================================================
--- pypy/dist/pypy/interpreter/nestedscope.py	(original)
+++ pypy/dist/pypy/interpreter/nestedscope.py	Mon Mar 14 17:12:11 2005
@@ -55,8 +55,8 @@
         if closure is None:
             if nfreevars:
                 raise OperationError(space.w_TypeError,
-                                     "directly executed code object "
-                                     "may not contain free variables")
+                                     space.wrap("directly executed code object "
+                                                "may not contain free variables"))
             closure = []
         else:
             if len(closure) != nfreevars:



More information about the Pypy-commit mailing list