[pypy-svn] r36133 - pypy/dist/pypy/translator/goal
cfbolz at codespeak.net
cfbolz at codespeak.net
Wed Jan 3 21:15:00 CET 2007
Author: cfbolz
Date: Wed Jan 3 21:15:00 2007
New Revision: 36133
Modified:
pypy/dist/pypy/translator/goal/targetpypystandalone.py
Log:
I _think_ that this is all what's needed to make the --oldstyle option working
for targetpypystandalone.
Modified: pypy/dist/pypy/translator/goal/targetpypystandalone.py
==============================================================================
--- pypy/dist/pypy/translator/goal/targetpypystandalone.py (original)
+++ pypy/dist/pypy/translator/goal/targetpypystandalone.py Wed Jan 3 21:15:00 2007
@@ -146,9 +146,9 @@
def get_entry_point(self, config):
space = make_objspace(config)
- # disable translation of the whole of classobjinterp.py
- StdObjSpace.setup_old_style_classes = lambda self: None
-
+ if not self.config.objspace.std.oldstyle:
+ # disable translation of the whole of classobjinterp.py
+ StdObjSpace.setup_old_style_classes = lambda self: None
# manually imports app_main.py
filename = os.path.join(this_dir, 'app_main.py')
More information about the Pypy-commit
mailing list