From 19a1e1eb86115db66c1faae5927f87e3a12692fc Mon Sep 17 00:00:00 2001 From: Zachary Ware Date: Tue, 4 Jun 2019 16:03:10 -0500 Subject: bpo-34282: Remove deprecated enum _convert method (GH-13823) --- Lib/enum.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'Lib/enum.py') diff --git a/Lib/enum.py b/Lib/enum.py index 6ef17c7f6d..403f747d22 100644 --- a/Lib/enum.py +++ b/Lib/enum.py @@ -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 -- cgit v1.2.1