[Python-checkins] bpo-43957: Add a missins space to the new format enum warning (#25770)
pablogsal
webhook-mailer at python.org
Sat May 1 15:26:16 EDT 2021
https://github.com/python/cpython/commit/9a42d5069a4c2a531076abfb198d2be26b57216c
commit: 9a42d5069a4c2a531076abfb198d2be26b57216c
branch: master
author: Pablo Galindo <Pablogsal at gmail.com>
committer: pablogsal <Pablogsal at gmail.com>
date: 2021-05-01T20:26:09+01:00
summary:
bpo-43957: Add a missins space to the new format enum warning (#25770)
files:
M Lib/enum.py
diff --git a/Lib/enum.py b/Lib/enum.py
index bccf024b520a9..01f431001a9bf 100644
--- a/Lib/enum.py
+++ b/Lib/enum.py
@@ -1018,7 +1018,7 @@ def __format__(self, format_spec):
import warnings
warnings.warn(
"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",
DeprecationWarning,
stacklevel=2,
More information about the Python-checkins
mailing list