Author: Antonio Cuni <anto.c...@gmail.com> Branch: py3k Changeset: r54476:fd87f3f71c7a Date: 2012-04-17 17:14 +0200 http://bitbucket.org/pypy/pypy/changeset/fd87f3f71c7a/
Log: we no longer have W_IntObject, but longs diff --git a/pypy/objspace/std/bytearrayobject.py b/pypy/objspace/std/bytearrayobject.py --- a/pypy/objspace/std/bytearrayobject.py +++ b/pypy/objspace/std/bytearrayobject.py @@ -9,6 +9,7 @@ from pypy.rlib.debug import check_annotation from pypy.objspace.std import stringobject from pypy.objspace.std.intobject import W_IntObject +from pypy.objspace.std.longobject import W_LongObject from pypy.objspace.std.listobject import get_positive_index from pypy.objspace.std.listtype import get_list_index from pypy.objspace.std.sliceobject import W_SliceObject, normalize_simple_slice @@ -349,7 +350,7 @@ w_str = _to_bytes(space, w_bytearray) return stringobject.str_isspace__String(space, w_str) -def bytearray_insert__Bytearray_Int_ANY(space, w_bytearray, w_idx, w_other): +def bytearray_insert__Bytearray_Long_ANY(space, w_bytearray, w_idx, w_other): where = space.int_w(w_idx) length = len(w_bytearray.data) index = get_positive_index(where, length) _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit