diff options
author | ianb <devnull@localhost> | 2005-05-08 07:10:34 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2005-05-08 07:10:34 +0000 |
commit | 6f64d5c821ec23332e6f357da83ce18ca654e373 (patch) | |
tree | 99248878d4db2ebba7841f43cd294c639f3af6b5 /paste/exceptions | |
parent | 027fae18fbcbf7644a0ba857471cca7034a9fd9f (diff) | |
download | paste-6f64d5c821ec23332e6f357da83ce18ca654e373.tar.gz |
Some minor problems in features that ZPT exceptions use
Diffstat (limited to 'paste/exceptions')
-rw-r--r-- | paste/exceptions/formatter.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/paste/exceptions/formatter.py b/paste/exceptions/formatter.py index 794123f..97da7ab 100644 --- a/paste/exceptions/formatter.py +++ b/paste/exceptions/formatter.py @@ -46,7 +46,7 @@ class AbstractFormatter: general_data[('important', 'source_url')] = self.format_sup_url( sup.source_url) if sup.line: - lines.append(self.format_sup_line_pos(self.line, self.column)) + lines.append(self.format_sup_line_pos(sup.line, sup.column)) if sup.expression: lines.append(self.format_sup_expression(sup.expression)) if sup.warnings: @@ -116,8 +116,8 @@ class TextFormatter(AbstractFormatter): return s def emphasize(self, s): return s - def format_sup_object(self, name): - return 'In object: %s' % self.quote(name) + def format_sup_object(self, obj): + return 'In object: %s' % self.quote(repr(obj)) def format_sup_url(self, url): return 'URL: %s' % self.quote(url) def format_sup_line_pos(self, line, column): |