summaryrefslogtreecommitdiffstats
path: root/Lib/enum.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/enum.py')
-rw-r--r--Lib/enum.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/enum.py b/Lib/enum.py
index fe521b1..091acb3 100644
--- a/Lib/enum.py
+++ b/Lib/enum.py
@@ -1372,6 +1372,9 @@ class Flag(Enum, boundary=STRICT):
Support for flags
"""
+ def __reduce_ex__(self, proto):
+ return self.__class__, (self._value_, )
+
_numeric_repr_ = repr
def _generate_next_value_(name, start, count, last_values):