]> granicus.if.org Git - python/commitdiff
Issue 27921: Remove backslash from another f-string.
authorEric V. Smith <eric@trueblade.com>
Sat, 3 Sep 2016 14:43:20 +0000 (10:43 -0400)
committerEric V. Smith <eric@trueblade.com>
Sat, 3 Sep 2016 14:43:20 +0000 (10:43 -0400)
Lib/http/client.py

index 91074129225cf1ecdaf9e19269ca18fc02b8adcb..230bccec988b98ee79db75c1a9533d2e80cedc81 100644 (file)
@@ -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)