mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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.
This commit is contained in:
parent
052828db15
commit
451d0e38fc
9 changed files with 321 additions and 341 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue