diff options
author | Michael Merickel <michael@merickel.org> | 2022-05-24 23:08:13 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-24 23:08:13 -0500 |
commit | 1542b09c66802a3f5483a8822ff2021a3aaba200 (patch) | |
tree | 33a99b837d55d4eb3e741e78c42f47b9ea56b629 /src/webob/client.py | |
parent | 259230aa2b8b9cf675c996e157c5cf021c256059 (diff) | |
parent | 7ab5c1110193f6ecc8487997d58bdc2e294514d8 (diff) | |
download | webob-1542b09c66802a3f5483a8822ff2021a3aaba200.tar.gz |
Merge pull request #436 from Pylons/enhancement/pyupgrade-3.7
Enhancement: Remove Python 3.6, add Python 3.10 and update syntax to Python 3.7
Diffstat (limited to 'src/webob/client.py')
-rw-r--r-- | src/webob/client.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webob/client.py b/src/webob/client.py index 980137a..1b32d9e 100644 --- a/src/webob/client.py +++ b/src/webob/client.py @@ -127,7 +127,7 @@ class SendRequest: return resp(environ, start_response) raise headers_out = self.parse_headers(res.msg) - status = "%s %s" % (res.status, res.reason) + status = f"{res.status} {res.reason}" start_response(status, headers_out) length = res.getheader("content-length") # FIXME: This shouldn't really read in all the content at once @@ -178,7 +178,7 @@ class SendRequest: try: header, value = full_header.split(":", 1) except Exception: - raise ValueError("Invalid header: %r" % (full_header,)) + raise ValueError(f"Invalid header: {full_header!r}") value = value.strip() if "\n" in value or "\r\n" in value: # pragma: no cover |