summaryrefslogtreecommitdiffstats
path: root/Lib/uuid.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-12-19 18:23:28 (GMT)
committerGeorg Brandl <georg@python.org>2009-12-19 18:23:28 (GMT)
commit1d523e1ae18d5a021c11beaca4ba664e0a6786e9 (patch)
tree9912aa0d65437c9d746164c90b1cdc027220c501 /Lib/uuid.py
parente231e39c2851e93254344626e05e81f1b543f88a (diff)
downloadcpython-1d523e1ae18d5a021c11beaca4ba664e0a6786e9.zip
cpython-1d523e1ae18d5a021c11beaca4ba664e0a6786e9.tar.gz
cpython-1d523e1ae18d5a021c11beaca4ba664e0a6786e9.tar.bz2
#7380: Fix some str/bytearray/bytes issues in uuid docs and implementation.
Diffstat (limited to 'Lib/uuid.py')
-rw-r--r--Lib/uuid.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/uuid.py b/Lib/uuid.py
index d50550a..b4554e4 100644
--- a/Lib/uuid.py
+++ b/Lib/uuid.py
@@ -13,7 +13,7 @@ Typical usage:
>>> import uuid
# make a UUID based on the host ID and current time
- >>> uuid.uuid1()
+ >>> uuid.uuid1() # doctest: +SKIP
UUID('a8098c1a-f86e-11da-bd1a-00112444be1e')
# make a UUID using an MD5 hash of a namespace UUID and a name
@@ -21,7 +21,7 @@ Typical usage:
UUID('6fa459ea-ee8a-3ca4-894e-db77e160355e')
# make a random UUID
- >>> uuid.uuid4()
+ >>> uuid.uuid4() # doctest: +SKIP
UUID('16fd2706-8baf-433b-82eb-8c7fada847da')
# make a UUID using a SHA-1 hash of a namespace UUID and a name
@@ -237,7 +237,7 @@ class UUID(object):
bytes = bytearray()
for shift in range(0, 128, 8):
bytes.insert(0, (self.int >> shift) & 0xff)
- return bytes
+ return bytes_(bytes)
@property
def bytes_le(self):