[Python-checkins] cpython (3.6): Additionally show that a backslash-escaped opening brace is treated as a
jason.coombs
python-checkins at python.org
Sun Nov 6 11:14:59 EST 2016
https://hg.python.org/cpython/rev/1d8b8a67b657
changeset: 104925:1d8b8a67b657
branch: 3.6
user: Jason R. Coombs <jaraco at jaraco.com>
date: Sun Nov 06 11:14:48 2016 -0500
summary:
Additionally show that a backslash-escaped opening brace is treated as a literal and thus triggers the single closing brace error, clarifying #28590.
files:
Lib/test/test_fstring.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_fstring.py b/Lib/test/test_fstring.py
--- a/Lib/test/test_fstring.py
+++ b/Lib/test/test_fstring.py
@@ -628,6 +628,7 @@
"f'}'",
"f'x}'",
"f'x}x'",
+ r"f'\u007b}'",
# Can't have { or } in a format spec.
"f'{3:}>10}'",
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list