diff options
Diffstat (limited to 'webtest/response.py')
| -rw-r--r-- | webtest/response.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webtest/response.py b/webtest/response.py index 8c4f87e..3f30d44 100644 --- a/webtest/response.py +++ b/webtest/response.py @@ -351,9 +351,9 @@ class TestResponse(webob.Response): for n, v in self.headerlist if n.lower() != 'content-length'] headers.sort() - output = 'Response: %s\n%s\n%s' % ( + output = 'Response: {}\n{}\n{}'.format( self.status, - '\n'.join(['%s: %s' % (n, v) for n, v in headers]), + '\n'.join([f'{n}: {v}' for n, v in headers]), simple_body) return output |
