[pypy-svn] r16297 - in pypy/dist/pypy: fakecompiler lib/_stablecompiler

tismer at codespeak.net tismer at codespeak.net
Tue Aug 23 17:41:12 CEST 2005


Author: tismer
Date: Tue Aug 23 17:41:11 2005
New Revision: 16297

Modified:
   pypy/dist/pypy/fakecompiler/fakecompiler.py
   pypy/dist/pypy/lib/_stablecompiler/apphook.py
Log:
again failed a little bit... (not my day)

Modified: pypy/dist/pypy/fakecompiler/fakecompiler.py
==============================================================================
--- pypy/dist/pypy/fakecompiler/fakecompiler.py	(original)
+++ pypy/dist/pypy/fakecompiler/fakecompiler.py	Tue Aug 23 17:41:11 2005
@@ -5,12 +5,6 @@
 def reallycompile(tuples, filename, mode):
     return parser.compileast(parser.tuple2ast(tuples), filename)
 
-def get_python():
-    try:
-        return file('pythonname').read().strip()
-    except IOError:
-        raise ValueError, "I need a local file 'pythonname'"
-
 if __name__ == '__main__':
     tuples, filename, mode, done = marshal.load(file(DUMPFILE, "rb"))
     code = reallycompile(tuples, filename, mode)

Modified: pypy/dist/pypy/lib/_stablecompiler/apphook.py
==============================================================================
--- pypy/dist/pypy/lib/_stablecompiler/apphook.py	(original)
+++ pypy/dist/pypy/lib/_stablecompiler/apphook.py	Tue Aug 23 17:41:11 2005
@@ -37,3 +37,9 @@
     if not done:
         raise ValueError, "could not fake compile!"
     return code
+
+def get_python():
+    try:
+        return file('pythonname').read().strip()
+    except IOError:
+        raise ValueError, "I need a local file 'pythonname'"



More information about the Pypy-commit mailing list