aboutsummaryrefslogtreecommitdiff
path: root/Lib/http
diff options
context:
space:
mode:
authorEric V. Smith <eric@trueblade.com>2016-09-03 10:43:20 -0400
committerEric V. Smith <eric@trueblade.com>2016-09-03 10:43:20 -0400
commit6e025608a291604c4a125da1e6278c61733d7c3e (patch)
tree4ead859f8e9da0a99725e6c75a42f2f45c24e4a8 /Lib/http
parentCloses issue 27921: Disallow backslashes anywhere in f-strings. This is a tem... (diff)
downloadcpython-6e025608a291604c4a125da1e6278c61733d7c3e.tar.gz
cpython-6e025608a291604c4a125da1e6278c61733d7c3e.tar.bz2
cpython-6e025608a291604c4a125da1e6278c61733d7c3e.zip
Issue 27921: Remove backslash from another f-string.
Diffstat (limited to 'Lib/http')
-rw-r--r--Lib/http/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/http/client.py b/Lib/http/client.py
index 91074129225..230bccec988 100644
--- a/Lib/http/client.py
+++ b/Lib/http/client.py
@@ -1060,7 +1060,7 @@ class HTTPConnection:
if encode_chunked and self._http_vsn == 11:
# chunked encoding
- chunk = f'{len(chunk):X}\r\n'.encode('ascii') + chunk \
+ chunk = f'{len(chunk):X}''\r\n'.encode('ascii') + chunk \
+ b'\r\n'
self.send(chunk)