diff options
author | cce <devnull@localhost> | 2006-09-11 19:12:59 +0000 |
---|---|---|
committer | cce <devnull@localhost> | 2006-09-11 19:12:59 +0000 |
commit | 4e668bf78f1974bb62f036404b3e2bbf20c9cbed (patch) | |
tree | e9162d0473d1e25f26612c319ad9a8721178d5f5 /paste/httpexceptions.py | |
parent | 37ffd040dfd7cc97ed6235156ca264d1b68be010 (diff) | |
download | paste-4e668bf78f1974bb62f036404b3e2bbf20c9cbed.tar.gz |
reverting my last change
Diffstat (limited to 'paste/httpexceptions.py')
-rw-r--r-- | paste/httpexceptions.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/paste/httpexceptions.py b/paste/httpexceptions.py index adfd5d3..095fc9f 100644 --- a/paste/httpexceptions.py +++ b/paste/httpexceptions.py @@ -166,7 +166,6 @@ class HTTPException(Exception): code = None title = None - detail_template = '%s' explanation = '' detail = '' comment = '' @@ -193,13 +192,12 @@ class HTTPException(Exception): if comment is not None: self.comment = comment Exception.__init__(self,"%s %s\n%s\n%s\n" % ( - self.code, self.title, self.explanation, - self.detail_template % self.detail)) + self.code, self.title, self.explanation, self.detail)) def make_body(self, environ, template, escfunc, comment_escfunc=None): comment_escfunc = comment_escfunc or escfunc args = {'explanation': escfunc(self.explanation), - 'detail': escfunc(self.detail_template % self.detail), + 'detail': escfunc(self.detail), 'comment': comment_escfunc(self.comment)} if HTTPException.template == self.template: return template % args |