Skip to content

Commit 19a1e1e

Browse files
zwarevstinner
authored andcommitted
bpo-34282: Remove deprecated enum _convert method (GH-13823)
1 parent 750767f commit 19a1e1e

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

Lib/enum.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -464,12 +464,6 @@ def _convert_(cls, name, module, filter, source=None):
464464
module_globals[name] = cls
465465
return cls
466466

467-
def _convert(cls, *args, **kwargs):
468-
import warnings
469-
warnings.warn("_convert is deprecated and will be removed in 3.9, use "
470-
"_convert_ instead.", DeprecationWarning, stacklevel=2)
471-
return cls._convert_(*args, **kwargs)
472-
473467
@staticmethod
474468
def _get_mixins_(bases):
475469
"""Returns the type for creating enum members, and the first inherited
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove ``Enum._convert`` method, deprecated in 3.8.

0 commit comments

Comments
 (0)