Commit 19a1e1eb authored by Zachary Ware's avatar Zachary Ware Committed by Victor Stinner

bpo-34282: Remove deprecated enum _convert method (GH-13823)

parent 750767f7
...@@ -464,12 +464,6 @@ class EnumMeta(type): ...@@ -464,12 +464,6 @@ class EnumMeta(type):
module_globals[name] = cls module_globals[name] = cls
return cls return cls
def _convert(cls, *args, **kwargs):
import warnings
warnings.warn("_convert is deprecated and will be removed in 3.9, use "
"_convert_ instead.", DeprecationWarning, stacklevel=2)
return cls._convert_(*args, **kwargs)
@staticmethod @staticmethod
def _get_mixins_(bases): def _get_mixins_(bases):
"""Returns the type for creating enum members, and the first inherited """Returns the type for creating enum members, and the first inherited
......
Remove ``Enum._convert`` method, deprecated in 3.8.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment