diff options
| author | Tim Graham <timograham@gmail.com> | 2017-02-01 19:55:31 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-02-01 19:55:31 -0500 |
| commit | 597bfcbf8b820ac5bd653a53fda3d2752a72fbb1 (patch) | |
| tree | 9ccf66caf78886b9843fb0174e229bc36868d132 | |
| parent | 0205e04ce7a554a7b9b27b412288cc6a0e75e48f (diff) | |
Removed unused ExceptionReporter.format_exception() method.
Unused since its introduction in e7e4b8b0f774b119bc1c46a62a97e51d7c8a35e3.
| -rw-r--r-- | django/views/debug.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/django/views/debug.py b/django/views/debug.py index 945e77440e..c22acdc676 100644 --- a/django/views/debug.py +++ b/django/views/debug.py @@ -440,18 +440,6 @@ class ExceptionReporter: return frames - def format_exception(self): - """ - Return the same data as from traceback.format_exception. - """ - import traceback - frames = self.get_traceback_frames() - tb = [(f['filename'], f['lineno'], f['function'], f['context_line']) for f in frames] - list = ['Traceback (most recent call last):\n'] - list += traceback.format_list(tb) - list += traceback.format_exception_only(self.exc_type, self.exc_value) - return list - def technical_404_response(request, exception): "Create a technical 404 error response. The exception should be the Http404." |
