[pypy-svn] r17067 - pypy/dist/pypy/bin
arigo at codespeak.net
arigo at codespeak.net
Mon Aug 29 21:00:33 CEST 2005
Author: arigo
Date: Mon Aug 29 21:00:31 2005
New Revision: 17067
Modified:
pypy/dist/pypy/bin/py.py
Log:
Oups, forgot to check this in.
Modified: pypy/dist/pypy/bin/py.py
==============================================================================
--- pypy/dist/pypy/bin/py.py (original)
+++ pypy/dist/pypy/bin/py.py Mon Aug 29 21:00:31 2005
@@ -53,22 +53,21 @@
return options
-def make_objspace(cmdlineopt):
- from pypy.objspace import std
- if cmdlineopt.objspace not in ('std', 'thunk'):
+def make_objspace(cmdlineopt):
+ if cmdlineopt.objspace == 'std':
+ from pypy.objspace.std import Space
+ elif cmdlineopt.objspace == 'thunk':
+ from pypy.objspace.thunk import Space
+ else:
raise ValueError("cannot instantiate %r space" %(cmdlineopt.objspace,))
- # so far we always need a StdObjSpace
- space = std.Space(usemodules = cmdlineopt.usemodules,
+ space = Space(usemodules = cmdlineopt.usemodules,
nofaking = cmdlineopt.nofaking,
uselibfile = cmdlineopt.uselibfile,
oldstyle = cmdlineopt.oldstyle,
parser = cmdlineopt.parser,
compiler = cmdlineopt.compiler,
)
- if cmdlineopt.objspace == 'thunk':
- from pypy.objspace import thunk
- space = thunk.Space(space)
return space
def main_(argv=None):
More information about the Pypy-commit
mailing list