diff options
author | Eric V. Smith <eric@trueblade.com> | 2016-09-03 13:18:34 (GMT) |
---|---|---|
committer | Eric V. Smith <eric@trueblade.com> | 2016-09-03 13:18:34 (GMT) |
commit | 6a4efce7a50f1339dd67f892cc8746f5c1047ada (patch) | |
tree | df1a4793f118436be8c701762579f7c716d1d2af /Lib/test/libregrtest | |
parent | 3b09cd64e0a7991bcb6d3f83a0a23be2fc81213f (diff) | |
download | cpython-6a4efce7a50f1339dd67f892cc8746f5c1047ada.zip cpython-6a4efce7a50f1339dd67f892cc8746f5c1047ada.tar.gz cpython-6a4efce7a50f1339dd67f892cc8746f5c1047ada.tar.bz2 |
Closes issue 27921: Disallow backslashes anywhere in f-strings. This is a temporary restriction. In 3.6 beta 2, the plan is to again allow backslashes in the string parts of f-strings, but disallow them in the expression parts.
Diffstat (limited to 'Lib/test/libregrtest')
-rw-r--r-- | Lib/test/libregrtest/save_env.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/libregrtest/save_env.py b/Lib/test/libregrtest/save_env.py index 96ad3af..eefbc14 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 After: {current} ", + print(f" Before: {original}""\n"f" After: {current} ", file=sys.stderr, flush=True) return False |