diff options
author | Eric V. Smith <eric@trueblade.com> | 2016-09-10 01:56:20 (GMT) |
---|---|---|
committer | Eric V. Smith <eric@trueblade.com> | 2016-09-10 01:56:20 (GMT) |
commit | 451d0e38fcf50d976236d7d00ccfe8c1a2305086 (patch) | |
tree | 29e15833e76714f8f0f8b906871b82c8c1a42967 /Lib/http | |
parent | 052828db1538bf0d42d7e256da13c6e183974a13 (diff) | |
download | cpython-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/http')
-rw-r--r-- | Lib/http/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/http/client.py b/Lib/http/client.py index ad8f410..6ee1913 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) |