Kaydet (Commit) 19a1e1eb authored tarafından Zachary Ware's avatar Zachary Ware Kaydeden (comit) Victor Stinner

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

üst 750767f7
......@@ -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
......
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