Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r58782:72d7509f81ea Date: 2012-11-07 12:57 +0100 http://bitbucket.org/pypy/pypy/changeset/72d7509f81ea/
Log: merge heads diff --git a/LICENSE b/LICENSE --- a/LICENSE +++ b/LICENSE @@ -1,9 +1,10 @@ -License for files in the pypy/ directory -================================================== +License +======= Except when otherwise stated (look for LICENSE files in directories or information at the beginning of each file) all software and -documentation in the 'pypy' directories is licensed as follows: +documentation in the 'pypy', 'ctype_configure', 'dotviewer', 'demo', +and 'lib_pypy' directories is licensed as follows: The MIT License diff --git a/pypy/interpreter/nestedscope.py b/pypy/interpreter/nestedscope.py --- a/pypy/interpreter/nestedscope.py +++ b/pypy/interpreter/nestedscope.py @@ -217,18 +217,9 @@ def MAKE_CLOSURE(self, numdefaults, next_instr): w_codeobj = self.popvalue() codeobj = self.space.interp_w(pycode.PyCode, w_codeobj) - if codeobj.magic >= 0xa0df281: # CPython 2.5 AST branch merge - w_freevarstuple = self.popvalue() - freevars = [self.space.interp_w(Cell, cell) - for cell in self.space.fixedview(w_freevarstuple)] - else: - n = len(codeobj.co_freevars) - freevars = [None] * n - while True: - n -= 1 - if n < 0: - break - freevars[n] = self.space.interp_w(Cell, self.popvalue()) + w_freevarstuple = self.popvalue() + freevars = [self.space.interp_w(Cell, cell) + for cell in self.space.fixedview(w_freevarstuple)] defaultarguments = self.popvalues(numdefaults) fn = function.Function(self.space, codeobj, self.w_globals, defaultarguments, freevars) _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit