mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Rename buffer -> bytearray.
This commit is contained in:
parent
905a904723
commit
254348e201
31 changed files with 290 additions and 290 deletions
|
@ -222,7 +222,7 @@ def itn(n, digits=8, format=DEFAULT_FORMAT):
|
|||
# this could raise OverflowError.
|
||||
n = struct.unpack("L", struct.pack("l", n))[0]
|
||||
|
||||
s = buffer()
|
||||
s = bytearray()
|
||||
for i in range(digits - 1):
|
||||
s.insert(0, n & 0o377)
|
||||
n >>= 8
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue