mirror of
https://github.com/python/cpython.git
synced 2025-09-20 15:40:32 +00:00
bpo-43957: Add a missins space to the new format enum warning (#25770)
This commit is contained in:
parent
e983252b51
commit
9a42d5069a
1 changed files with 1 additions and 1 deletions
|
@ -1018,7 +1018,7 @@ class Enum(metaclass=EnumType):
|
||||||
import warnings
|
import warnings
|
||||||
warnings.warn(
|
warnings.warn(
|
||||||
"in 3.12 format() will use the enum member, not the enum member's value;\n"
|
"in 3.12 format() will use the enum member, not the enum member's value;\n"
|
||||||
"use a format specifier, such as :d for an IntEnum member, to maintain"
|
"use a format specifier, such as :d for an IntEnum member, to maintain "
|
||||||
"the current display",
|
"the current display",
|
||||||
DeprecationWarning,
|
DeprecationWarning,
|
||||||
stacklevel=2,
|
stacklevel=2,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue