Index: Lib/uuid.py =================================================================== --- Lib/uuid.py (revision 65675) +++ Lib/uuid.py (working copy) @@ -234,10 +234,10 @@ @property def bytes(self): - bytes = bytearray() + bs = bytearray() for shift in range(0, 128, 8): - bytes.insert(0, (self.int >> shift) & 0xff) - return bytes + bs.insert(0, (self.int >> shift) & 0xff) + return bytes(bs) @property def bytes_le(self):