From 31e154aa7edcf40c8ff2cc196043fe5e2bc1143c Mon Sep 17 00:00:00 2001 From: Bert JW Regeer Date: Thu, 14 Apr 2016 01:17:37 -0600 Subject: PEP8 --- webob/exc.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'webob') diff --git a/webob/exc.py b/webob/exc.py index 040e4a4..c9ab2e5 100644 --- a/webob/exc.py +++ b/webob/exc.py @@ -182,13 +182,15 @@ from webob.response import Response from webob.util import html_escape tag_re = re.compile(r'<.*?>', re.S) -br_re = re.compile(r'', re.I|re.S) +br_re = re.compile(r'', re.I | re.S) comment_re = re.compile(r'') def lazify(func): class _lazyfied(object): - def __init__(self, s): self._s = s - def __str__(self): return func(self._s) + def __init__(self, s): + self._s = s + def __str__(self): + return func(self._s) return _lazyfied def no_escape(value): @@ -340,11 +342,11 @@ ${body}''') if isinstance(body, text_type): extra_kw.update(charset='utf-8') resp = Response(body, - status=self.status, - headerlist=headerlist, - content_type=content_type, - **extra_kw - ) + status=self.status, + headerlist=headerlist, + content_type=content_type, + **extra_kw + ) resp.content_type = content_type return resp(environ, start_response) -- cgit v1.2.1