summaryrefslogtreecommitdiffstats
path: root/Lib/uuid.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/uuid.py')
-rw-r--r--Lib/uuid.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/uuid.py b/Lib/uuid.py
index 5ae0a3e..67da885 100644
--- a/Lib/uuid.py
+++ b/Lib/uuid.py
@@ -47,7 +47,7 @@ Typical usage:
import os
import sys
-from enum import Enum
+from enum import Enum, _simple_enum
__author__ = 'Ka-Ping Yee <ping@zesty.ca>'
@@ -75,7 +75,8 @@ int_ = int # The built-in int type
bytes_ = bytes # The built-in bytes type
-class SafeUUID(Enum):
+@_simple_enum(Enum)
+class SafeUUID:
safe = 0
unsafe = -1
unknown = None