Author: Ronan Lamy <ronan.l...@gmail.com>
Branch: translation-cleanup
Changeset: r57683:ff0274f68473
Date: 2012-09-29 18:13 +0100
http://bitbucket.org/pypy/pypy/changeset/ff0274f68473/

Log:    rm unused argument 'constargs'

diff --git a/pypy/objspace/flow/flowcontext.py 
b/pypy/objspace/flow/flowcontext.py
--- a/pypy/objspace/flow/flowcontext.py
+++ b/pypy/objspace/flow/flowcontext.py
@@ -235,7 +235,7 @@
 
 class FlowSpaceFrame(pyframe.CPythonFrame):
 
-    def __init__(self, space, func, constargs=None):
+    def __init__(self, space, func):
         code = HostCode._from_code(space, func.func_code)
         self.pycode = code
         self.space = space
@@ -253,12 +253,8 @@
         self.f_lineno = code.co_firstlineno
         self.last_instr = 0
 
-        if constargs is None:
-            constargs = {}
         formalargcount = code.getformalargcount()
         arg_list = [Variable() for i in range(formalargcount)]
-        for position, value in constargs.items():
-            arg_list[position] = Constant(value)
         self.setfastscope(arg_list)
 
         self.w_locals = None # XXX: only for compatibility with PyFrame
diff --git a/pypy/objspace/flow/objspace.py b/pypy/objspace/flow/objspace.py
--- a/pypy/objspace/flow/objspace.py
+++ b/pypy/objspace/flow/objspace.py
@@ -230,12 +230,12 @@
             w_type = w_instclass
         return FSException(w_type, w_value)
 
-    def build_flow(self, func, constargs={}, tweak_for_generator=True):
+    def build_flow(self, func, tweak_for_generator=True):
         """
         """
         if func.func_doc and func.func_doc.lstrip().startswith('NOT_RPYTHON'):
             raise Exception, "%r is tagged as NOT_RPYTHON" % (func,)
-        frame = self.frame = FlowSpaceFrame(self, func, constargs)
+        frame = self.frame = FlowSpaceFrame(self, func)
         frame.build_flow()
         graph = frame.graph
         fixeggblocks(graph)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to