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
|
@ -234,7 +234,7 @@ class UUID(object):
|
|||
|
||||
@property
|
||||
def bytes(self):
|
||||
bytes = buffer()
|
||||
bytes = bytearray()
|
||||
for shift in range(0, 128, 8):
|
||||
bytes.insert(0, (self.int >> shift) & 0xff)
|
||||
return bytes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue