[pypy-commit] pypy default: Make this code compliant with "virtualizable arrays are never None".
arigo
noreply at buildbot.pypy.org
Thu Oct 24 20:12:04 CEST 2013
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r67580:d011e042323a
Date: 2013-10-24 20:07 +0200
http://bitbucket.org/pypy/pypy/changeset/d011e042323a/
Log: Make this code compliant with "virtualizable arrays are never None".
diff --git a/pypy/interpreter/nestedscope.py b/pypy/interpreter/nestedscope.py
--- a/pypy/interpreter/nestedscope.py
+++ b/pypy/interpreter/nestedscope.py
@@ -125,8 +125,7 @@
if len(cellvars) != ncellvars:
raise OperationError(self.space.w_TypeError,
self.space.wrap("bad cellvars"))
- if self.cells is not None:
- self.cells[:ncellvars] = cellvars
+ self.cells[:ncellvars] = cellvars
@jit.dont_look_inside
def fast2locals(self):
@@ -165,8 +164,6 @@
@jit.unroll_safe
def init_cells(self):
- if self.cells is None:
- return
args_to_copy = self.pycode._args_as_cellvars
for i in range(len(args_to_copy)):
argnum = args_to_copy[i]
More information about the pypy-commit
mailing list