mirror of
https://github.com/python/cpython.git
synced 2025-08-24 10:45:53 +00:00
Issue #25523: Further a-to-an corrections new in 3.5
This commit is contained in:
parent
2eb819f7a8
commit
d2ad5718ad
8 changed files with 10 additions and 10 deletions
|
@ -34,7 +34,7 @@ def _int_to_enum(value, enum_klass):
|
|||
|
||||
def _enum_to_int(value):
|
||||
"""Convert an IntEnum member to a numeric value.
|
||||
If it's not a IntEnum member return the value itself.
|
||||
If it's not an IntEnum member return the value itself.
|
||||
"""
|
||||
try:
|
||||
return int(value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue