summaryrefslogtreecommitdiffstats
path: root/Lib/test/libregrtest
diff options
context:
space:
mode:
authorEric V. Smith <eric@trueblade.com>2016-09-10 01:56:20 (GMT)
committerEric V. Smith <eric@trueblade.com>2016-09-10 01:56:20 (GMT)
commit451d0e38fcf50d976236d7d00ccfe8c1a2305086 (patch)
tree29e15833e76714f8f0f8b906871b82c8c1a42967 /Lib/test/libregrtest
parent052828db1538bf0d42d7e256da13c6e183974a13 (diff)
downloadcpython-451d0e38fcf50d976236d7d00ccfe8c1a2305086.zip
cpython-451d0e38fcf50d976236d7d00ccfe8c1a2305086.tar.gz
cpython-451d0e38fcf50d976236d7d00ccfe8c1a2305086.tar.bz2
Issue 27948: Allow backslashes in the literal string portion of f-strings, but not in the expressions. Also, require expressions to begin and end with literal curly braces.
Diffstat (limited to 'Lib/test/libregrtest')
-rw-r--r--Lib/test/libregrtest/save_env.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/libregrtest/save_env.py b/Lib/test/libregrtest/save_env.py
index eefbc14..96ad3af 100644
--- a/Lib/test/libregrtest/save_env.py
+++ b/Lib/test/libregrtest/save_env.py
@@ -280,6 +280,6 @@ class saved_test_environment:
print(f"Warning -- {name} was modified by {self.testname}",
file=sys.stderr, flush=True)
if self.verbose > 1:
- print(f" Before: {original}""\n"f" After: {current} ",
+ print(f" Before: {original}\n After: {current} ",
file=sys.stderr, flush=True)
return False