Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
19a1e1eb
Commit
19a1e1eb
authored
Jun 04, 2019
by
Zachary Ware
Committed by
Victor Stinner
Jun 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-34282: Remove deprecated enum _convert method (GH-13823)
parent
750767f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
Lib/enum.py
Lib/enum.py
+0
-6
Misc/NEWS.d/next/Library/2019-06-04-15-39-14.bpo-34282.aAK54n.rst
...S.d/next/Library/2019-06-04-15-39-14.bpo-34282.aAK54n.rst
+1
-0
No files found.
Lib/enum.py
View file @
19a1e1eb
...
@@ -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
...
...
Misc/NEWS.d/next/Library/2019-06-04-15-39-14.bpo-34282.aAK54n.rst
0 → 100644
View file @
19a1e1eb
Remove ``Enum._convert`` method, deprecated in 3.8.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment