summaryrefslogtreecommitdiffstats
path: root/Lib/enum.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/enum.py')
-rw-r--r--Lib/enum.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/enum.py b/Lib/enum.py
index b9811fe..43cd1bc 100644
--- a/Lib/enum.py
+++ b/Lib/enum.py
@@ -1643,6 +1643,7 @@ def global_str(self):
use enum_name instead of class.enum_name
"""
if self._name_ is None:
+ cls_name = self.__class__.__name__
return "%s(%r)" % (cls_name, self._value_)
else:
return self._name_