mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Rename buffer -> bytearray.
This commit is contained in:
parent
905a904723
commit
254348e201
31 changed files with 290 additions and 290 deletions
|
@ -39,7 +39,7 @@ class IntTestCase(unittest.TestCase, HelperMixin):
|
|||
# we're running the test on a 32-bit box, of course.
|
||||
|
||||
def to_little_endian_string(value, nbytes):
|
||||
b = buffer()
|
||||
b = bytearray()
|
||||
for i in range(nbytes):
|
||||
b.append(value & 0xff)
|
||||
value >>= 8
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue