Author: Matti Picus <matti.pi...@gmail.com> Branch: py3.6 Changeset: r96843:6ed43dc686fc Date: 2019-06-23 01:15 +0300 http://bitbucket.org/pypy/pypy/changeset/6ed43dc686fc/
Log: fix translation diff --git a/pypy/objspace/std/memoryobject.py b/pypy/objspace/std/memoryobject.py --- a/pypy/objspace/std/memoryobject.py +++ b/pypy/objspace/std/memoryobject.py @@ -19,8 +19,10 @@ MEMORYVIEW_PIL = 0x0010 def is_multiindex(space, w_key): + from pypy.objspace.std.tupleobject import W_AbstractTupleObject if not space.isinstance_w(w_key, space.w_tuple): return 0 + assert isinstance(w_key, W_AbstractTupleObject) length = space.len_w(w_key) i = 0 while i < length: @@ -31,8 +33,10 @@ return 1 def is_multislice(space, w_key): + from pypy.objspace.std.tupleobject import W_AbstractTupleObject if not space.isinstance_w(w_key, space.w_tuple): return 0 + assert isinstance(w_key, W_AbstractTupleObject) length = space.len_w(w_key) if length == 0: return 0 _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit