[pypy-svn] r16311 - pypy/dist/pypy/interpreter
tismer at codespeak.net
tismer at codespeak.net
Tue Aug 23 18:30:53 CEST 2005
Author: tismer
Date: Tue Aug 23 18:30:52 2005
New Revision: 16311
Modified:
pypy/dist/pypy/interpreter/pycompiler.py
Log:
had to avoid debug_print at runtime
Modified: pypy/dist/pypy/interpreter/pycompiler.py
==============================================================================
--- pypy/dist/pypy/interpreter/pycompiler.py (original)
+++ pypy/dist/pypy/interpreter/pycompiler.py Tue Aug 23 18:30:52 2005
@@ -252,12 +252,21 @@
from _stablecompiler import apphook
return apphook.fakeapplevelcompile
''')
+ self.w_printmessage = self.space.appexec([], r'''():
+ def printmessage(msg):
+ print msg
+ return printmessage
+ ''')
+ def printmessage(self, msg):
+ space = self.space
+ space.call_function(self.w_printmessage, space.wrap(msg))
def _get_compiler(self, mode):
from pypy.interpreter.error import debug_print
import os
if os.path.exists('fakecompiler.py') and mode != 'single':
- debug_print("faking compiler, because fakecompiler.py is in the current dir")
+ self.printmessage("faking compiler, because fakecompiler.py"
+ " is in the current dir")
return self.w_compilefake
else:
return self.w_compileapp
More information about the Pypy-commit
mailing list