summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Brewer <fumanchu@aminus.org>2005-09-14 07:21:21 +0000
committerRobert Brewer <fumanchu@aminus.org>2005-09-14 07:21:21 +0000
commitc011a4acd79c352b4db68a264b1bc879b8047b9c (patch)
treee93f3ec0f5bdd2990ca77609aba3df34a8c7d1ef
parent88fd311cd8ec3547bd74c95caac46b72d4ac46ee (diff)
downloadcherrypy-git-c011a4acd79c352b4db68a264b1bc879b8047b9c.tar.gz
Bah. Newline badness again.
-rw-r--r--cherrypy/_cperror.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/cherrypy/_cperror.py b/cherrypy/_cperror.py
index dc022f95..110ac6fb 100644
--- a/cherrypy/_cperror.py
+++ b/cherrypy/_cperror.py
@@ -176,7 +176,7 @@ class HTTPError(Error):
""" Exception used to return an HTTP error code to the client.
This exception will automatically set the response status and body.
- A custom body can be pased to the init method in place of the
+ A custom body can be pased to the init method in place of the
standard error page.
"""
@@ -191,14 +191,14 @@ class HTTPError(Error):
cherrypy.response.status = self.statusString
if body is _missing:
- # because the init method is called before the exception
- # is raised it is impossible to embed the traceback in the
- # error page at this point. We use a generator so that the
- # error page is generated at a later point (after the
+ # because the init method is called before the exception
+ # is raised it is impossible to embed the traceback in the
+ # error page at this point. We use a generator so that the
+ # error page is generated at a later point (after the
# exception is raised).
body = self.pageGenerator()
-
- cherrypy.response.body = body
+
+ cherrypy.response.body = body
def __str__(self):
return self.statusString