[pypy-svn] r53100 - in pypy/branch/jit-hotpath/pypy: module/pypyjit translator/goal
arigo at codespeak.net
arigo at codespeak.net
Sat Mar 29 17:59:40 CET 2008
Author: arigo
Date: Sat Mar 29 17:59:40 2008
New Revision: 53100
Modified:
pypy/branch/jit-hotpath/pypy/module/pypyjit/interp_jit.py
pypy/branch/jit-hotpath/pypy/translator/goal/targetpypystandalone.py
Log:
Translation fixes and typos.
Modified: pypy/branch/jit-hotpath/pypy/module/pypyjit/interp_jit.py
==============================================================================
--- pypy/branch/jit-hotpath/pypy/module/pypyjit/interp_jit.py (original)
+++ pypy/branch/jit-hotpath/pypy/module/pypyjit/interp_jit.py Sat Mar 29 17:59:40 2008
@@ -135,8 +135,9 @@
'''
args_w, kwds_w = args.unpack()
if len(args_w) > 1:
- raise OperationError("set_param() takes at most 1 "
- "non-keyword argument, %d given" % len(args_w))
+ msg = ("set_param() takes at most 1 non-keyword argument, %d given"
+ % len(args_w))
+ raise OperationError(space.w_TypeError, space.wrap(msg))
if len(args_w) == 1:
text = space.str_w(args_w[0])
try:
Modified: pypy/branch/jit-hotpath/pypy/translator/goal/targetpypystandalone.py
==============================================================================
--- pypy/branch/jit-hotpath/pypy/translator/goal/targetpypystandalone.py (original)
+++ pypy/branch/jit-hotpath/pypy/translator/goal/targetpypystandalone.py Sat Mar 29 17:59:40 2008
@@ -45,7 +45,7 @@
try:
space.call_function(w_run_toplevel, w_call_startup_gateway)
- if self.translateconfig.goal_options.jit:
+ if space.config.objspace.usemodules.pypyjit:
# initial setup of the JIT and handling of the
# '--jit PARAM=VALUE,PARAM=VALUE...' command-line option
# (for now it's a bit ad-hoc)
More information about the Pypy-commit
mailing list