diff --git a/swift/common/middleware/staticweb.py b/swift/common/middleware/staticweb.py index c01f720f14..df52bb0ebd 100644 --- a/swift/common/middleware/staticweb.py +++ b/swift/common/middleware/staticweb.py @@ -240,8 +240,7 @@ class _StaticWebContext(WSGIContext): '/'.join(groups[4:])) if not config_true_value(self._listings): - body = '\n' \ + body = '\n' \ '\n' \ '\n' \ 'Listing of %s\n' % html_escape(label) @@ -286,8 +285,7 @@ class _StaticWebContext(WSGIContext): resp = HTTPNotFound()(env, self._start_response) return self._error_response(resp, env, start_response) headers = {'Content-Type': 'text/html; charset=UTF-8'} - body = '\n' \ + body = '\n' \ '\n' \ ' \n' \ ' Listing of %s\n' % \