diff options
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2021-09-20 18:22:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-20 18:22:55 (GMT) |
commit | 9510e6f3c797b4398aaf58abc1072b9db0a644f9 (patch) | |
tree | 02cc57a588d356766df4bd191430c7cbdeca5a18 /Lib/uuid.py | |
parent | 5846c9b71ee9277fe866b1bdee4cc6702323fe7e (diff) | |
download | cpython-9510e6f3c797b4398aaf58abc1072b9db0a644f9.zip cpython-9510e6f3c797b4398aaf58abc1072b9db0a644f9.tar.gz cpython-9510e6f3c797b4398aaf58abc1072b9db0a644f9.tar.bz2 |
bpo-45155: Apply new byteorder default values for int.to/from_bytes (GH-28465)
Diffstat (limited to 'Lib/uuid.py')
-rw-r--r-- | Lib/uuid.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/uuid.py b/Lib/uuid.py index 67da885..f179d68 100644 --- a/Lib/uuid.py +++ b/Lib/uuid.py @@ -186,7 +186,7 @@ class UUID: if len(bytes) != 16: raise ValueError('bytes is not a 16-char string') assert isinstance(bytes, bytes_), repr(bytes) - int = int_.from_bytes(bytes, byteorder='big') + int = int_.from_bytes(bytes) # big endian if fields is not None: if len(fields) != 6: raise ValueError('fields is not a 6-tuple') @@ -284,7 +284,7 @@ class UUID: @property def bytes(self): - return self.int.to_bytes(16, 'big') + return self.int.to_bytes(16) # big endian @property def bytes_le(self): |