[pypy-svn] r35960 - in pypy/dist/pypy/objspace/flow: . test
mwh at codespeak.net
mwh at codespeak.net
Fri Dec 22 16:10:19 CET 2006
Author: mwh
Date: Fri Dec 22 16:10:18 2006
New Revision: 35960
Modified:
pypy/dist/pypy/objspace/flow/flowcontext.py
pypy/dist/pypy/objspace/flow/test/test_framestate.py
Log:
argh, forgot to check this in
Modified: pypy/dist/pypy/objspace/flow/flowcontext.py
==============================================================================
--- pypy/dist/pypy/objspace/flow/flowcontext.py (original)
+++ pypy/dist/pypy/objspace/flow/flowcontext.py Fri Dec 22 16:10:18 2006
@@ -1,5 +1,6 @@
from pypy.interpreter.executioncontext import ExecutionContext
from pypy.interpreter.error import OperationError
+from pypy.interpreter import pyframe
from pypy.objspace.flow.model import *
from pypy.objspace.flow.framestate import FrameState
@@ -218,8 +219,8 @@
# create an empty frame suitable for the code object
# while ignoring any operation like the creation of the locals dict
self.recorder = []
- frame = self.code.create_frame(self.space, self.w_globals,
- self.closure)
+ frame = pyframe.PyFrame(self.space, self.code,
+ self.w_globals, self.closure)
frame.last_instr = 0
return frame
Modified: pypy/dist/pypy/objspace/flow/test/test_framestate.py
==============================================================================
--- pypy/dist/pypy/objspace/flow/test/test_framestate.py (original)
+++ pypy/dist/pypy/objspace/flow/test/test_framestate.py Fri Dec 22 16:10:18 2006
@@ -20,7 +20,7 @@
code = func.func_code
code = PyCode._from_code(self.space, code)
w_globals = Constant({}) # space.newdict()
- frame = code.create_frame(space, w_globals)
+ frame = self.space.createframe(code, w_globals)
formalargcount = code.getformalargcount()
dummy = Constant(None)
More information about the Pypy-commit
mailing list