[pypy-commit] pypy py3k: we no longer have W_IntObject, but longs
antocuni
noreply at buildbot.pypy.org
Tue Apr 17 17:58:35 CEST 2012
Author: Antonio Cuni <anto.cuni at 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)
More information about the pypy-commit
mailing list