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

This commit is contained in:
Zachary Ware 2019-06-04 16:03:10 -05:00 committed by Victor Stinner
parent 750767f7c0
commit 19a1e1eb86
2 changed files with 1 additions and 6 deletions

View File

@ -464,12 +464,6 @@ class EnumMeta(type):
module_globals[name] = 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
def _get_mixins_(bases):
"""Returns the type for creating enum members, and the first inherited

View File

@ -0,0 +1 @@
Remove ``Enum._convert`` method, deprecated in 3.8.